Originally Posted by
nanotube
that NOPASSWD sudoers entry should allow you to run rdiff-backup without sudo... does in not work?
I wasn't sure if it was just because I had just done a sudo. I had originally tried to
Code:
sudo chmod 4755 `which rdiff-backup`
but still got permissions problems on the destination!
Originally Posted by
nanotube
i wrote the script so that i don't have to retype all those exclude options etc, all i have to do is launch the script.
I was just saying that you could put all those excludes in a globbing file on the destination instead. But I like this way too.
Incidentally, what I'm doing is weird anyway - I'm running the script from xscreensaver so that I get 'many and often'. I tend to work in bursts so its like an autosave/undo option!
Also, I use quoted excludes with wildcards so I get empty directories on the destination.
Code:
#!/bin/bash
sudo rdiff-backup --print-statistics --exclude '/media/*' --exclude '/proc/*' --exclude '/tmp/*' --exclude '/dev/*' --exclude '/sys/*' --exclude /root/.cache --exclude '/var/log/*' / /media/Maxtor/backups &
I'd be interested to hear other peoples exclude lists for 'everything essential' and perhaps some examples with ignoring types of files.
I was going to give this point and drool interface for rdiff-backup called pybackpack a go too but this howto is so easy anyway why bother?
Thanks for the link BTW (and of course the great howto!)
Bookmarks