Backup from command line [answered]
Is there a way to trigger a backup from the command line? That way I could setup a cron job that checks if I am at my home network, does the backup and git pushes the data to my server at home.
Just to clarify: I mean the built-in backup utility under 'Settings'.
when you are gitting at home why don't you just let your server check for availability and do backups?
chemist ( 2015-04-25 17:31:41 +0200 )editI would like to rely on Jolla's backup infrastructure instead of just rsyncing my home folder. I am not sure that rsyncing the home folder does actually save everything, also I am not sure what the proper restore procedure is. The backup infrastructure is based on GIT and thus makes syncing and versioning of the data very easy. The only piece missing in the puzzle is the ability to backup without the GUI.
Bernte ( 2015-04-26 02:01:26 +0200 )editIMO everything possible in the GUI should be possible (automated, scriptable) in the terminal emulator/shell. That would not reduce the validity of questions like this but they might change from can I ... ? and why can't I ... ? to how do I ... ?
rdmo ( 2015-04-26 14:20:58 +0200 )editI said "at home" not "your ~/", you make a remote connection and can trigger everything on the jolla shell, don't you? You can invoke
chemist ( 2015-04-26 15:08:53 +0200 )editvault
from shell, also you cantar
and evengit
. Withssh nemo@jolla 'bash -s' < yourscript.sh
you can even run a script from your desktop remotely. First of all you want something like described here for a daily backup routine https://together.jolla.com/question/16434/cronjob-on-sailfish/?answer=43375#post-id-43375 if you put a script that tars everything nicely you can just have your desktop check if your jolla is there every minute and pull the tar file.I fully understood your point, my point was about rsync my home folder vs. using the backup utility. The question whether I trigger it from a cron job on my home box or a cron job on my Jolla is not my problem. My question is: "Is there a way to trigger a backup from the command line?" (the build in Backup utility you find under Settings) - everything else was just explanation of why I wanted it.
Bernte ( 2015-04-26 15:31:10 +0200 )edit