Synchronize.sh helps you synchronize two directories on local and/or remote machines. It uses rsync to synchronize the first path specified to the second path specified. then it synchronizes the files in the other direction. The command-line path arguments uses the same syntax as rsync.
Synchronize.sh is distributed as executable source code under the GNU General Public License. Please see the license agreement elsewhere on this site.
Synchronize.sh "path 1" "path 2"
After deploying Synchronize.sh on many of my computer systems, the problem of eliminate obsolete or junk files became a problem. With Synchronize.sh distributing everything to multiple systems. To eliminate a single file means you have to delete the file from all of your computers. Otherwise, the file will be perpetuated by Synchronize.sh again.
I saw this problem when two system core dumps kept perpetuating, even though I thought I've deleted them from all computers (twice). Apparently, I must have forgotten about one or two computers in the distribution network.
Here is the next iteration of Synchonize.sh. This new version supports an exclude file. Simply put a "SynchronizeEliminate.txt" file in the same directory as the Synchronize.sh script. You can put file patterns in this exclude file so that files matching these patterns will not be synchronized. You can then delete them at will. Or run an automated delete script (there are several on this site).
Recently, I found a need to pass additional argument to rsync, through the Synchronize.sh script. So today, I have re-written Synchronize.sh, which allows you to specify additional command-line arguments, in addition to the "-auv" and the "--exclude-from" flags that are already passed to rsync..
Synchronize.sh "path 1" "path 2" [args]
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: SynchronizeDelete.sh (GPL)
Spam Control | * indicates required field
Messages, files, and images copyright by respective owners.
48 Users Online
Copyright © 1996 - 2018. All Rights Reserved.