[LUAU] RSync help

James Handsel jhandsel at lava.net
Sun Jan 23 16:24:13 PST 2011


Brian, Clifton, Vince & Scott (where are you these days?)

Sorry for the slow follow up, here are all the relevant files . . .

There's a fair amount of extraneous info, but I left everything intact, 
in case it comes into play.

Right now my big question is why does rsync run as "nobody" on the 
(office) server I am pulling the sync from.  Also, ANY pointers for 
increasing efficiency or eloquence would be welcome.

TIA . . . Jim


#### cron entry:  ####
0 4 * * 2       /root/Custom/sync.mbox 0 01_Mon


### rsyncd.conf from the office server ****
gid = users
read only = true
use chroot = true
transfer logging = true
log format = %h %o %f %l %b
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
hosts allow = 127.0.0.1, localhost, xx.xx.xxx.xx
slp refresh = 300
timeout = 4800
dont compress = *.zip *.gz *.Z *.?pg *.?peg *.exe *.cab *.sna *.SNA 
*.iso *.ISO
#disable slp = true


[Data]
         path = /data01/shared/Data
         comment = Data
         write only = false
         read only = true
         fake super = yes
#       auth users = RsyncMan
         exclude =
         secrets file = /etc/rsyncd.secrets

[FTP]
         path = /data01/shared/FTP
         comment = FTP Data (Not in use, see SNAP FTP Server)
         write only = false
         read only = true
         fake super = yes
#       auth users = RsyncMan
         exclude =
         secrets file = /etc/rsyncd.secrets

[Images]
         path = /data01/shared/Images
         comment = Disk Image Files
         write only = false
         read only = true
         fake super = yes
#       auth users = RsyncMan
         exclude =
         secrets file = /etc/rsyncd.secrets

[Install]
         path = /data01/shared/Install
         comment = Installation files
         write only = false
         read only = true
         fake super = yes
#       auth users = RsyncMan
         exclude =
         secrets file = /etc/rsyncd.secrets

[MBox]
         path = /data01/shared/MBox
         comment = MBox Files
         write only = false
         read only = true
         fake super = yes
#       auth users = RsyncMan
         exclude =
         secrets file = /etc/rsyncd.secrets



### bash script: ###
#!/bin/sh
#
#

ADMIN=BackupMgr
SYNCUSER=root at mail.xxxxxx.com
COMOPTS="-vahzAX --super --devices --stats --delete-during"
IMGPATH=/media/Ext_Image/shared
LOG=/tmp/sync.mbox.log
NOW='date +%c'


if [ -d $IMGPATH ]; then

         echo "*** MBox ***" > $LOG; $NOW >> $LOG
         rsync $COMOPTS -e "ssh -i /root/.ssh/srvr-rmt-rsync-key" 
$SYNCUSER::MBox $IMGPATH/MBox >> $LOG; $NOW >> $LOG
         echo "" >> $LOG; echo "" >> $LOG; echo "MBox Listing" >> $LOG;
echo "" >> $LOG;ls -l $IMGPATH/MBox/ >> $LOG
         echo "" >> $LOG; echo "" >> $LOG; echo "Disk Usage" >> $LOG;
echo "" >> $LOG;df >> $LOG
         mail -s "SNA - MBox Sync Log" $ADMIN < $LOG

         /bin/incbru.mbox $1 $2 | mail -s "SNA - MBox Backup Log" $ADMIN

else
         echo "Image USB drv is not available" | mail -s "SNA - Sync &
Backup Error" $ADMIN
fi



More information about the LUAU mailing list