Results 1 to 4 of 4

Thread: Rsync backups

  1. #1

    Question Rsync backups

    This must be simple but I can't get it to work in 11.1.
    I have a software mirrowed pair of disks that have my music and photos stored.

    Not wishing to leave all to the mirror, I also have external usb drives that contain backup copies of the mirrowed data. As I add new albums and pictures all the time, I thought I want an incremental backup so that just the new stuff gets backed up.

    I thought RSYNC would be great for this, so of to the Linux in a Nutshell book for the the parameters.

    The command I tried is this:

    rsync -av /nas/music/* --backup-dir=/media/Backup/music

    The backup media already has most of the music on it, I just wanted the new stuff to be archived. Looking at the terminal I see all the music flying past my eyes including the new stuff, but when I check the backup directory none of the new stuff exists.

    I must have the command line set incorrectly, can someone please put me straight.

    Gordon

  2. #2
    Chris Maaskant NNTP User

    Default Re: Rsync backups

    ghilliard wrote:

    > I must have the command line set incorrectly, can someone please put me
    > straight.


    rsync -avptgoH --delete-excluded '/dir1' 'dir2' /backupdisk
    Is what i use.
    The --delete-excluded is for removing files from the backup that were also
    removed from the source.
    Man rsync if you want to know what every letter does as a option to rsync.
    I can't remember, but i know that this back things up with all the
    permissions of the file remaining the same.
    I use rsync for files from root and myself that's why i want permissions to
    be unchanged.

    --
    Chris Maaskant

  3. #3
    Join Date
    Sep 2008
    Location
    London
    Posts
    47

    Default Re: Rsync backups

    When you rsync from an ext3/reiserfs file system to another such fs you want to keep the permissions and use something like :

    rsync -avz --delete /home/tom/ /media/disk/tom

    But if you rsync from your linux fs to a FAT32 fs then, because this one does not know anything about unix permissions, you would probably use simply :

    rsync -rtvz --delete /home/tom/ /media/disk/tom

    As previously mentioned check with man.

  4. #4

    Red face Re: Rsync backups

    Thanks Guys I'll check it out today, I have a mixture of Fat and ext3 external drives so it wil be interesting to see what happens.

    Gordon

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •