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,757 of 138,051    |
|    Carlos E. R. to All    |
|    Re: A little thing with rsync    |
|    29 Apr 19 13:55:53    |
      From: robin_listas@es.invalid              On 29/04/2019 04.37, Sidney_Kotic wrote:       > 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       > #              I do a grep on the "mount" command result to find out if things are mounted.                     > 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].              I fail to follow the rsync logic you are using.              --       Cheers,        Carlos E.R.              --- 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