home bbs files messages ]

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,758 of 138,051   
   William Unruh to Carlos E. R.   
   Re: A little thing with rsync   
   29 Apr 19 15:33:30   
   
   From: unruh@invalid.ca   
      
   On 2019-04-29, Carlos E. R.  wrote:   
   > 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   
      
   You tell rsync to trasfer any directory starting with either A or B over   
   to /run/media/Philo/Videos-A-B (I assume you did a previous cd to get   
   you into the directory which contains A* or B*).   
   Then you ask why it did not erase run/media/Philo/Videos-A-B/Z   
   But that was not part of what you asked it to transfer. It transfered   
   stuff from A* or B*, and to erase the files from   
   /run/media/Philo/Videos-A-B/A* or /run/media/Philo/Videos-A-B/B* that   
   were no longer in the sources.   
      
      
   >> fi   
      
   --- 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