S
Slickuser
I know this not might be the group to post this question but I want to
get an answer.
I will using Perl to Unix command.
Man: http://samba.anu.edu.au/ftp/rsync/rsync.html
I cannot get my filters to work.
I want everything to rsync from /abc/* to /backup/* and delete
destination if tge source is not there but don't delete or touch /
backup/two
Help please?
I have these directories
dirs in /abc: one three fours five six
dirs in /backup: two
This will back up everything and delete /backup/two/
rsync -q --delete -avz /abc/ /backup/
this doesn't work
rsync -q --delete -avz /abc/ /backup/ --filter='protect /backup/two/
*'
rsync -q --delete -avz /abc/ /backup/ --filter='protect /backup/two/'
before::::
dirs in /abc: one three fours five six
dirs in /backup: two
after:
rsync -q --delete -avz /abc/ /backup/
dirs in /abc: one three fours five six
dirs in /backup: one three fours five six
I want this::
before::::
dirs in /abc: one three fours five six
dirs in /backup: two
after:
dirs in /abc: one three fours five six
dirs in /backup: one two three fours five six
if has:
before::::
dirs in /abc: one three fours five six
dirs in /backup: two
after:
dirs in /abc: one three fours five six
dirs in /backup: one two three fours five six
next rsync
dirs in /abc: one three
dirs in /backup: one two three fours five six
this will become
dirs in /abc: one three
dirs in /backup: one two three
get an answer.
I will using Perl to Unix command.
Man: http://samba.anu.edu.au/ftp/rsync/rsync.html
I cannot get my filters to work.
I want everything to rsync from /abc/* to /backup/* and delete
destination if tge source is not there but don't delete or touch /
backup/two
Help please?
I have these directories
dirs in /abc: one three fours five six
dirs in /backup: two
This will back up everything and delete /backup/two/
rsync -q --delete -avz /abc/ /backup/
this doesn't work
rsync -q --delete -avz /abc/ /backup/ --filter='protect /backup/two/
*'
rsync -q --delete -avz /abc/ /backup/ --filter='protect /backup/two/'
before::::
dirs in /abc: one three fours five six
dirs in /backup: two
after:
rsync -q --delete -avz /abc/ /backup/
dirs in /abc: one three fours five six
dirs in /backup: one three fours five six
I want this::
before::::
dirs in /abc: one three fours five six
dirs in /backup: two
after:
dirs in /abc: one three fours five six
dirs in /backup: one two three fours five six
if has:
before::::
dirs in /abc: one three fours five six
dirs in /backup: two
after:
dirs in /abc: one three fours five six
dirs in /backup: one two three fours five six
next rsync
dirs in /abc: one three
dirs in /backup: one two three fours five six
this will become
dirs in /abc: one three
dirs in /backup: one two three