I was using a script to perform rsync in sudo crontab. The script does a 2-way rsync (from serverA to serverB and reverse). the rsync uses ssh to connect between servers. After i reboot both the server machines, the rsync is not working in sudo crontab.
I have a script which will upload files from a specific directory (with rsync) to the server, but in the mean time another script will pull files from the server (also with rsync and with the --delete flag).
This means, that when I add a lot of files to it and rsync is in the process of uploading files and the download script is also being run, some files (which are not yet uploaded to the server
I was using a script to perform rsync in sudo crontab. The script does a 2-way rsync (from serverA to serverB and reverse). After i reboot both the server machines, the rsync is not working in sudo crontab.
Hi,my post installation run of Dropbox failed, but it left me with a modified dmenu: it thinks the installation completed correctly, so I have an unnusable Dropbox launcher (because dropbox software was never downloaded), and it deleted the dropbox-installation-script. Just wondering what that script does, before I re-install dropbox from scratch... Could anybody copy it here for reference?
Hello.
I am running Ubuntu Server x64 12.04. I have apcupsd properly running.
I have the following bash script on debian with the LSB header:
### BEGIN INIT INFO
# Provides: shutdown_vms
# Required-Start:
# Required-Stop: gdm vmware $local_fs $remote_fs $network
# Default-Start:
# Default-Stop: 0 2 3 4 5 6
# Short-Description: Shutdown vms
# Description: Shutdown vms
### END INIT INFO
The script shutdown guest vms when host is shutdown.
I have the following expect script that uses rsync and expect to automate the process.
#!/usr/bin/expect
rsync -a --progress --delete --rsh='/usr/bin/ssh' root@00.00.00.00:/var/www/test/ /var/www/test
expect "password:"
send "XXXXX";
interact
However the rsync command of course does not work inside the expect script. Any ideas for a workaround?
i have a rsync script setup to check for new files on a remote machine every 5 minutes. it these are large files so it takes longer then 5 minutes to transfer.
I'm in the process of writing a script in c-shell that will execute the following command.
rsync -zav --log-file=/home/earth/log/back_up_logs/rsync-music-$(date +%Y-%m-%d).log --delete-after /media/pool1/Music/ /media/pool-ext1/Music/
the command itself works just fine but i cant figure out how to execute command from within a script.