About examples in the help info

I am glad that rsync has all the "bells and whistles."

I asked the same question elsewhere to "spread the load of my questions."

rsync -help
rsync  version 3.2.7  protocol version 31
followed by a plethora of material.

I looked for an example of a resync of files between 2 hard drives.

Did not find any.

"Keep the greasy side down when driving."

I would like to offer up my own backup script regarding the use of rsync, which can be found here.

I also offered details of its usage/behaviour in this other post.

The bottom part, starting at the "Imported ..." line, comes from a separate script to monitor the backup script's activities, which is available here.

3 Likes

My backup script which was lost in an UM upgrade did this.

Changed to the directories of the files I wanted compressed.

Compressed the files.

Copied the files to the 2nd drive using rsync only if they were newer.

Thanks.

1 Like

My script only copies newer, but IF there is no initial copy, it will copy everything to create that first necessary image.

My Admin script calls up the backup with the following programmed sequence:

quickRSYNC.sh ${opts}

sleep 10
testor=`ps -ef | grep -v 'grep' | grep 'rsync' `
if [ -n "${testor}" ]
then
	OS_Admin__partitionMirror_Monitor.sh
else
	echo ""
fi
2 Likes

Your backup script is 177 lines.

My biggest script is 72 lines.

Modifying it for my use might take me several days.

I WILL study it and learn some new techniques that I do not even know about. :slight_smile:

2 Likes