restic -r /srv/restic-repo backup ~/work --exclude="*.c" --exclude-file=excludes.txt
There is a gigantic page full of using this command at the restic read the docs page....but no context for commands like this. That's why I'm bugging you.
With no explanation this command assumes restic knows where to find excludes.txt. Uness this part of command (/srv/restic-repo
) is the clue for restic?
--exclude-from='/home/harvey/.backupexclude'
". I put it in the directory I was backing up"----at least in your example I can see with /home/harvey/etc that you are literally walking the command to the document. Thanks, thats what I want to be sure of. I named it like the restic people did (.excludes.txt
) and will move it /home right now--plus I added your period. Good idea.
The command I used last night for my successful test copy was:
restic backup /home/brent/Downloads --verbose -r /run/media/brent/backup
(/Downloads being the test.)
To back up /home, this is what I'm coming up with:
restic backup /home/brent --verbose -r /run/media/brent/backup exclude-from'/home/brent/.excludes.txt'
look allright? apostrophe right after M in from, no space? appreciate your help very much--I'm not seeing the nuances I need to see in the paperwork. Thanks so much so far.