home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.linux      Getting to be as bloated as Windows!      107,822 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 106,484 of 107,822   
   J.O. Aho to bad sector   
   Re: pushing my bash luck   
   19 Sep 24 15:19:09   
   
   From: user@example.net   
      
   On 19/09/2024 14.18, bad sector wrote:   
   >   
   > I want to devise a shutdown cron script that will make a dated rsync   
   > backup of any directory under a particular path that had been written to   
   > during the session and then shut down.   
      
   rsync do compare a source and a destination and then copies the changes,   
   so if your destination directory change name all the time, rsync will   
   copy everything.   
      
   > Maybe there's a uti that already does this and I just have to invoke IT   
   > with args in the script?   
      
   btrfs has the ability to tell you what has changed between two snapshots.   
   Think you also can do this with zfs and maybe with the experimental   
   bcachefs.   
   Using lvm it could be possible too to diff the snapshot and the current   
   one, get a list of files and then just sync those.   
      
   I think you would need to start your session with a rsync -rvn, store   
   the output, when it's time to shut down you need to run rsync -rvn   
   again, store this output in another file, then you diff the two files to   
   see the difference, the files added you can then sync.   
      
   --   
     //Aho   
      
   --- 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