backup help

0 views
Skip to first unread message

matt

unread,
Jun 21, 2012, 4:55:40 PM6/21/12
to taranaki-linux-users-group
rsync -zva --exclude 'mnt/' --exclude 'dev/' --exclude 'proc/' --exclude 'sys/' / /mnt/sdd/backup

its working so far but it's not deleting???
/and.old.dir
if i remove it it dosnt rm it from the backup

any ideas

thnks matt 

Damien

unread,
Jun 21, 2012, 5:05:58 PM6/21/12
to taranaki-linu...@googlegroups.com
you need the --delete option in there, there are multiple delete options too

            --del                   an alias for --delete-during
            --delete                delete extraneous files from dest dirs
            --delete-before         receiver deletes before xfer, not during
            --delete-during         receiver deletes during the transfer
            --delete-delay          find deletions during, delete after
            --delete-after          receiver deletes after transfer, not during
            --delete-excluded       also delete excluded files from dest dirs



--
You received this message because you are subscribed to the Google Groups "Taranaki Linux Users Group" group.
To post to this group, send email to taranaki-linu...@googlegroups.com.
To unsubscribe from this group, send email to taranaki-linux-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/taranaki-linux-users-group?hl=en.

matt

unread,
Jun 21, 2012, 5:10:43 PM6/21/12
to taranaki-linu...@googlegroups.com
cool works
thanks 
Reply all
Reply to author
Forward
0 new messages