[Borgbackup] Fwd: --exclude-from | --remote-path

Thomas Waldmann tw at waldmann-edv.de
Fri Jan 8 12:06:50 EST 2016


Hi Stan,

> My exclusion list is being ignored. I have attached it. I am trying to
> backup to a remote server on my LAN. The size of the backup is much too
> large. I finally interrupted it. I assume that my exclusion of /media is
> being ignored, and my large data disks are being included.

Always use create --dry-run --verbose when setting such stuff up (same
goes for prune policy and restrictions), then you quickly see what it
considers for backup and what not.

>     # borg create --exclude-from /home/stan/backup-exclusions 
>     root at Barbara-office:/media/Backup-S/Borg-S::Thursday /*

Maybe rather use an ISO datetimestring as shown in the docs as archive
name. Archive names need to be unique and a week later, there will be
another Thursday.

/* is likely not doing what you want. A unix shell will immediately
expand this to all items found in the root directory and give the
expanded list to borg. Try just: /

> Is the format of my list wrong?

Remove all the double quotes and retry.

> I started borg on the server machine using "borg server" issued
> from that machine.

You don't need to manually start "borg serve" on the server.

If you invoke borg on the client and give a ssh://... repo url, it will
automatically establish a connection to the server, invoke "borg serve"
there and then the both borg talk to each other over the ssh connection.

> In future, will I have to do this, or is the purpose of the
> "--remote-path PATH" option to make the borg on the server start
> processing the archive?

You usually do not need that option, except if borg is not in the $PATH
system search path on the server or isn't named "borg".

Cheers, Thomas

-- 

GPG ID: FAF7B393
GPG FP: 6D5B EF9A DD20 7580 5747 B70F 9F88 FB52 FAF7 B393



More information about the Borgbackup mailing list