Best way to backup "watched" data on boot?
#1
What's the best way for me to set something up like a script to run upon boot/xbmc launch to backup the Watched/not watched data everytime?
Reply
#2
What os? On Linux I have a cron job to rsync backup certain folders daily, but it wouldn't be to hard to run at boot etc.

Only way I know to backup watched data is to backup the whole xbmc usrrdata directory, there may be better ways but I've never looked onto it.
Reply
#3
Yes, XBMCBuntu..... Maybe I should post this in the linux forum....

I'm not very familiar with linux, are cron jobs similar to scheduled tasks in windows? That's how I would think of doing it.....


Reply
#4
I'm pretty sure they are.. I'll post my command for crontab/rsync when I get home.
Reply
#5
Thanks!
Reply
#6
To edit crontab

Code:
crontab -e


My line (I use sudo's crontab to get read access to all files in /etc, to use this you need to edit sudo's crontab)
Code:
@daily /usr/bin/rsync -azrtRsv --modify-window=1 --delete  --log-file=/var/log/rsync.cron.log /etc /home /mnt/win-system/emulation /mnt/win-system/Users/xbmc/AppData/Roaming /mnt/storage/rsync-xbmc-backup

Reply

Logout Mark Read Team Forum Stats Members Help
Best way to backup "watched" data on boot?0