Ubuntu files backups Onedrive

Share on:

###OneDrive Använder fork av skilion/onedrive https://github.com/abraunegg/onedrive/blob/master/docs/USAGE.md

Config: sudo vim ~/.config/onedrive/config

1systemctl enable onedrive@<username>.service
2systemctl start onedrive@<username>.service

To view the status of the service running for the user, use the following:

1systemctl status onedrive@<username>.service

###Copying files https://www.tecmint.com/rsync-local-remote-file-synchronization-commands/ rsync -avzh

1rsync -avz /media/sourcedir/ /media/targetdir/

####screen Run in the background https://linuxize.com/post/how-to-use-linux-screen/

1screen -S session_name
2Ctrl+A ? #gives commands
3Ctrl+A Ctrl+d #detach from screen
4screen -ls #active screens
5screen -r 10835 #reattach screen with id
6screen -rd 10835 #reattach if not detached