-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Ubuntu Server 22.04 | ||
|
||
## Cron jobs | ||
|
||
### arg | ||
|
||
``` | ||
# Backup to B2 | ||
0 6 * * * backup archives b2 | ||
0 7 * * * backup backups b2 | ||
0 8 * * * backup documents b2 | ||
0 9 * * * backup literature b2 | ||
0 10 * * * backup photos b2 | ||
0 11 * * * backup videos b2 | ||
# Backup to Google Drive | ||
0 12 * * * backup documents gdrive | ||
0 13 * * * backup literature gdrive | ||
# Backup to Google Photos | ||
0 14 * * * backup photos gphotos | ||
# Backup to Hetzner | ||
0 17 * * * backup archives hetzner | ||
0 18 * * * backup backups hetzner | ||
0 19 * * * backup documents hetzner | ||
0 20 * * * backup literature hetzner | ||
0 21 * * * backup photos hetzner | ||
0 22 * * * backup videos hetzner | ||
``` | ||
|
||
### root | ||
|
||
``` | ||
45 23 * * * zfs-auto-snapshot --quiet --syslog --label=daily --prefix=cron --skip-scrub --recursive --keep=30 archive | ||
``` | ||
|
||
## ZFS tweaks | ||
|
||
### Disable frequent snapshots creation | ||
|
||
```sh | ||
zfs set com.sun:auto-snapshot:frequent=false <dataset> | ||
``` | ||
|
||
### Disable `zfs-auto-snapshot` completely | ||
|
||
```sh | ||
zfs set com.sun:auto-snapshot=false <dataset> | ||
``` |