Displaying 2 results from an estimated 2 matches for "rlptpzu".
2002 Oct 03
0
more questions Re: deleting (empty) directories
Thanks to Tim Conway and Phil Marek. The correct way(s) to synchronize two
directory trees is to avoid a trailing "*" after the origin directory
(either use a . or nothing)
rsync -rlptPzu --delete /scratch/temp/Departure/. /scratch/temp/Arrival/
rsync -rlptPzu --delete /scratch/temp/Departure/ /scratch/temp/Arrival/
I was misled by my first tests
rsync -rlptPzu --delete /scratch/temp/Departure /scratch/temp/Arrival
which created Arrival/Departure and over-did it adding /* to Depa...
2002 Oct 02
1
deleting (empty) directories
...e correct run string I need I am
running tests LOCALLY between two test directories.
I have a /scratch/temp/Departure and a /scratch/temp/Arrival trees. I
apply changes to the Departure tree, run rsync, and do a diff -r.
Now I delete a file in Departure
rm Departure/Quattro/uno.file
rsync -vvv -rlptPzu --delete \
/scratch/temp/Departure/* /scratch/temp/Arrival/
and it does work (deletes file from Arrival/Quattro/uno.file)
Now I delete the only other file in the same directory
rm Departure/Quattro/due.file
and repeat rsync and it works too.
Now Departure/Quattro is empty so I can remove it...