To edit root's cron and use the same procedures as above. Now if you need root permissions on the files you are backing up, type: This cron job will backup my /media/external/Documents every week, on Sunday, at 3:30am to /data/backup # Weekly backup of Documents on external drive to /data/backupģ0 3 * * 0 rsync -av -delete -progress /media/external/Documents /data/backupĮxit the file with a ctrl + X and Y to to save. for example it can be put into crontab for scheduled execution on terminal, and to get the results via email. GRSYNC-BATCH is a script which can be used to automate rsync runs using grsync sessions (see man grsync). Now, if the media files are owned by you, from a terminal type:Īnd enter something similar to this, edit according to your needs: grsync-batch -f -d sessionnamefilename Description. So first let's set your default text editor to nano, instead of vi: So I would setup a cron job to use rsync to back it up. Not sure on the ownership on your media files, I'm assuming you the user owns them. Heck with a bit of programming research, you could probably take the output from rsync and generate dbus events that could be tied to a little gui (status icons in pygtk are pretty easy) to show you progress/history of backups when you are logged in to a desktop, but using that solution your backups would continue even when not logged in. If you could somehow weasel out the actual rsync command your backup uses, or, with more patience learn how to reconstruct the same command by reading the rsync man page ("man rsync" at a terminal), you could then schedule it using the gnome-scheduler as you asked, or using the cron daemon, again this would require a bit of research and learning some command line on your part, but would be a very good solution, and work well even if you transferred to a headless media server. I dont know where to start.īy the name, i would assume grsync is a front-end to the command line rsync tool. The task scheduler asks for a command to run at the scheduled time. Is it possible using the gnome-scheduler? I have been using grsync to synch and backup my media library.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |