Owncloud will not back up certain files, such as those beginning with underscores. Ftpbox is a hack that allows me to back up all files manually, using batch files. A better option is rsync. Osync for bidirectional sync.
Installation
1 | #apt-get update |
Batch files
1 |
|
1 |
|
put in ~/.profiles for execution on login
for execution at shutdown:
sudo cp ./ftpbox-upload.sh /etc/init.d/
sudo update-rc.d ftpbox-upload.sh start 03 0 6
0 is for shutdown
6 is for reboot
03 puts it in the middle of the scripts run
update-rc.d creates a symlink
Run on login, logout, cron
~/.bash_profile or ~/.bash_login do not exist on Ubuntu
Use ~/.profile for login scripts and append:
~/ftpbox-download.sh
Use ~/.bash_logout for logout scripts
~/ftpbox-upload.sh
crontab -e to edit crontab
add 1 line per command
*/10 * * * * /home/dad/ftpbox-upload.sh
chmod 600 ~/.netrc ;read and write by user only
**~/.netrc **
machine www.