Sync the backup to Google Drive every day
This commit is contained in:
parent
2046329111
commit
e32fde2ddb
4 changed files with 30 additions and 0 deletions
10
.config/systemd/user/sync-backup.service
Normal file
10
.config/systemd/user/sync-backup.service
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Sync local backup to the cloud
|
||||
Wants=sync-backup.timer
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=%h
|
||||
ExecStart=%h/.local/bin/sync-backup service
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
10
.config/systemd/user/sync-backup.timer
Normal file
10
.config/systemd/user/sync-backup.timer
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Daily backup cloud sync
|
||||
Requires=sync-backup.service
|
||||
|
||||
[Timer]
|
||||
Unit=sync-backup.service
|
||||
OnCalendar=daily
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue