John I use this as my backup:
function RsyncThem { echo now rsynch directories #rsync -rvpt --delete /home /backup/ rsync -vlH -e ssh --times --perms --owner --group --recursive /home /masterbackup/backup rsync -vlH -e ssh --times --perms --owner --group --recursive /etc /masterbackup/backup/etc/ } this function is called by a sheel being run as root. To answer your questions 1) no it does not verify the files copied 2) As you see I actually chose which directories to save, rather than what to exclude. But your list seems reasonable 3) I just use 1 as it gives me enough information 4) Running as the root user, from the root cron, I backup every user in the /home directory and all subdirectories, including the '.' Hope this helps Peter L On 29/09/14 13:00, dorset-requ...@mailman.lug.org.uk wrote: > Send dorset mailing list submissions to > dorset@mailman.lug.org.uk > > To subscribe or unsubscribe via the World Wide Web, visit > https://mailman.lug.org.uk/mailman/listinfo/dorset > or, via email, send a message with subject or body 'help' to > dorset-requ...@mailman.lug.org.uk > > You can reach the person managing the list at > dorset-ow...@mailman.lug.org.uk > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of dorset digest..." > > > Today's Topics: > > 1. How to use rsync for backups (JD) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sun, 28 Sep 2014 21:22:17 +0100 > From: JD <john.dub...@hotmail.co.uk> > To: dorset@mailman.lug.org.uk > Subject: [Dorset] How to use rsync for backups > Message-ID: <blu436-smtp1121468f9f8a40c5aaa2ca7a2...@phx.gbl> > Content-Type: text/plain; charset="utf-8"; format=flowed > > I've set up an initial use of rsync for making a mirror-type backup and > I'd like some advice to improve it, please. > > 1. Does rsync verify the copies it makes? > > 2. What non-user directories should I exclude? My initial command is: > > sudo rsync -azvv --delete --exclude=/tmp/ > --exclude=/home/john/Downloads/ --exclude=/home/john/GM2 > --exclude=/home/shareddocs/Downloads/ > --exclude=/home/evelyn/Downloads/ --exclude=proc/ --exclude=dev/ > --exclude=mnt/ --exclude=media/ --exclude=sys/ / > '/media/john/Ubuntu Backup/Mirror-backup' > > 3. How many v's should I use, e.g -azv? > > 4. I (user john) couldn't copy the .thunderbird subdirectories of user > evelyn. Why not? I ran with sudo and other items copied OK. > Temporarily, I've changed their permissions. > > Thanks in advance. > John > > > > ------------------------------ > > _______________________________________________ > dorset mailing list > dorset@mailman.lug.org.uk > https://mailman.lug.org.uk/mailman/listinfo/dorset > > End of dorset Digest, Vol 555, Issue 1 > ************************************** >
-- Next meeting: Bournemouth, Tuesday, 2014-10-07 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread on mailing list: mailto:dorset@mailman.lug.org.uk How to Report Bugs Effectively: http://goo.gl/4Xue