After happily using Synchronize.sh and its associated SynchronizeEliminate.txt file for the past year and a half, I now have a lot of unnecessary files scattered among my synchronized computers throughout the world. Although the SynchronizeEliminate.txt prevents those files from being transmitted back and forth, they persists on the systems that grabbed a hold of them. I needed a way to eliminate these files automatically. And this is where SynchronizeDelete.sh comes into play.
SynchronizeDelete.sh takes the file masks specified in the SynchronizeEliminate.txt file, find all occurrence of them, and deletes them (whether they are files or directories). SynchronizeDelete.sh starts the search in the current directory. You can use SynchronizeDelete.sh alongside Synchronize.sh or you can use it stand-alone to eliminate any files to pops up in your computer system repeatedly.
The format of the SynchronizeEliminate.txt file is specified in "Synchronize.sh (GPL)", see the TrackBack link for details. Be careful with directory file masks, because SynchronizeDelete.sh will recursively delete any directory that matches the mask without prejudice.
SynchronizeDelete.sh takes advantage of the Where.sh (GPL) Bourne shell script, which is also available on this site. So to use this script, you will need to download the Where.sh script if you don't already have it.
SynchronizeDelete.sh is distributed as executable source code under the GNU General Public License. Please see the license agreement elsewhere on this site.
SynchronizeDelete.sh utilizes "find" and "grep". Both of these utilities understands regular expression patterns. Therefore, the file specification in SyncronizeEliminate.sh should be in regular expression pattern form.
Syncronize.sh on the other hand, utilizes "rsync", which understands a sub-set of file masks. Therefoer, SynchronizeEliminate.sh also needs to include file mask patterns.
In order to help me remember to add both types to SynchronizeEliminate.txt, I place the following comments on the top of my "SynchronizeEliminate.txt" file:
# Synchronize.sh (rsync) uses file masks.
Did your message disappear? Read the Forums FAQ.
TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.
Title: Synchronize.sh (GPL)
Spam Control | * indicates required field
Messages, files, and images copyright by respective owners.
37 Users Online
Copyright © 1996 - 2018. All Rights Reserved.