initial commit
This commit is contained in:
33
chapter7/generic_rsync.bash
Executable file
33
chapter7/generic_rsync.bash
Executable file
@@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# SCRIPT: generic_rsync.bash
|
||||
# AUTHOR: Randy Michael
|
||||
# DATE: 11/18/2007
|
||||
# REV: 1.0
|
||||
# PURPOSE: This is a generic shell script to copy files
|
||||
# using rsync.
|
||||
#
|
||||
# set -n # Uncomment to check script syntax without execution
|
||||
# set -x # Uncomment to debug this script
|
||||
#
|
||||
# REV LIST:
|
||||
#
|
||||
#
|
||||
##############################################
|
||||
# DEFINE FILES AND VARIABLES HERE
|
||||
##############################################
|
||||
|
||||
# Define the source and destination files/directories
|
||||
|
||||
SOURCE_FL="/scripts/"
|
||||
DESTIN_FL="booboo:/scripts"
|
||||
|
||||
##############################################
|
||||
# BEGINNING OF MAIN
|
||||
##############################################
|
||||
|
||||
# Start the rsync copy
|
||||
|
||||
rsync -avz "$SOURCE_FL" "$DESTIN_FL"
|
||||
|
||||
# End of generic_rsync.bash
|
||||
Reference in New Issue
Block a user