1

[SOLVED] Running rsync in init script?

view story
linux-howto

http://crunchbanglinux.org – Hi all!I am trying to run a script during shutdown and reboot. I have placed symlinks to the script in question in both /etc/rc0.d/ and /etc/rc6.d/.The script is very simple (one line!), what it does is to use rsync to make sure some files from dir A is synced with dir B that resides in my Dropbox dir. BUT! Nothing happens...I am obviously missing something, and would appreciate any help in this. Here's the script: 1 #!/bin/bash 2 # 3 # Simple script to sync with Dropbox 4 # at shutdown and reboot. 5 6 /usr/bin/rsync -rv /home/me/Sites/oophp_ht12/ /home/me/Dropbox/Universitet/ (HowTos)