Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.os.linux.suse    |    Suse is actually not that bad    |    138,051 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 136,756 of 138,051    |
|    Sidney_Kotic to All    |
|    A little thing with rsync    |
|    28 Apr 19 18:37:16    |
      From: kant@have.it              I use it all the time. Just noticed this.       Here's a snippet of a bash script.              #       # Check for avi files A-B and back them up if the appropriate USB       # is inserted.       #       ls /run/media/Philo/Videos-A-B 1>/dev/null 2>/dev/null       if [ "$?" -eq "0" ] ;        then        rsync -aprv --delete [A-B]* /run/media/Philo/Videos-A-B       fi       #              It works, copies new/changed files over, just in the directories A and B, and       deletes files in those two directories that have gone away. Just like it       should.              But, tonight I noticed that the directory /run/media/Philo/Videos-A-B/Z and all       it's files was still there. I was expecting it to be deleted.              I suppose I could add some stuff like       rm -rf [C-Z]* 1>/dev/null 2>/dev/null       and do the splits for things later in the alphabet, like to handle just [O-S].              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca