[Novalug] Using rsync to maintain mirror image of email
James Ewing Cottrell 3rd
JECottrell3@Comcast.NET
Mon May 21 23:49:04 EDT 2012
I think all he cares about is ONE backup.
You shouldn't need -u (update). You might also add -x, just so you don't
jump off to a different filesystem. I always use that option.
You can probably nuke the log after a few days.
Since it's mail, why not sync hourly?
Looks Good!
JIM
On 5/21/2012 9:56 PM, Matt Rowley wrote:
> I recommend taking a look at rsnapshot. It makes use of rsync but also
> provides neat, standard backup features like daily/weekly/monthly
> rotation while using hard link trickery to save space.
>
> --Matt
>
> On May 21, 2012 6:49 PM, "Jay Hart" <jhart@kevla.org
> <mailto:jhart@kevla.org>> wrote:
>
> I'm Looking to backup users email folders (files, directories, etc).
> I am
> using the Maildir framework, the mail lives /home/username/Maildir/
>
> I want to use rsync to do daily/weekly backups.
>
> According to my research the following command:
>
> rsync -avruh --delete --log-file=FILE source destination
>
> should do:
> - traverse the directory structure specified by source
> - copy/backup only new files(emails) not in the archive
> - delete from the archive any old emails that have subsequently been
> deleted
> from the source (maintaining a mirrow image)
> - delete any folders that have been deleted/renamed (I'm not sure
> about this)
> - log everything in a human readable log file verbosely
> - maintain timestamp, permissions, etc
>
> I've shown the options below. In case I don't have this right, my
> goal is to
> maintain a mirror archive at the destination of both directories and
> files.
>
> Thanks for any comments,
>
> Jay
>
> *** Options shown below ***
> -a indicates archive mode. -a option does the following,
> Recursive mode
> Preserves symbolic links
> Preserves permissions
> Preserves timestamp
> Preserves owner and group
>
> -v verbose
> -r recursive - means it copies directories and sub directories
> --log-file=FILE log what we're doing to the specified FILE
> -u update -
> Tells rsync to only copy files that are newer, changed or not already in
> the destination folder. Keeps it simple and tidy not copying files
> more than
> needed.
>
> -h human readable output - I bet you thought I meant help but with other
> options the
> lower case h becomes a different switch. By itself -h displays help as I
> mentioned
> above. This is mostly usable for reading the output on screen and in
> logging.
>
>
>
>
>
>
> _______________________________________________
> Novalug mailing list
> Novalug@calypso.tux.org <mailto:Novalug@calypso.tux.org>
> http://calypso.tux.org/mailman/listinfo/novalug
>
>
>
> _______________________________________________
> Novalug mailing list
> Novalug@calypso.tux.org
> http://calypso.tux.org/mailman/listinfo/novalug
More information about the Novalug
mailing list