32 lines
1.2 KiB
Markdown
32 lines
1.2 KiB
Markdown
# BorgBackup
|
|
Used to backup the desktop
|
|
|
|
## Create Repo
|
|
This only needs to be done if you don't have a location set for the backups
|
|
|
|
This example uses the mounted SSD on the desktop
|
|
`borg init --encryption=repokey /media/jerick/8E12F96B12F95923/LinuxBackups/`
|
|
|
|
Backup the ~/src and ~/Documents directories into an archive called Monday
|
|
`borg create --stats /media/jerick/8E12F96B12F95923/LinuxBackups/::Monday ~/src ~/Documents`
|
|
|
|
List all archives in the repository:
|
|
`borg list /media/jerick/8E12F96B12F95923/LinuxBackups/`
|
|
|
|
Restore the Monday archive by extracting the files relative to the current directory:
|
|
`borg extract /media/jerick/8E12F96B12F95923/LinuxBackups/::Monday`
|
|
|
|
Delete the Monday archive (please note that this does not free repo disk space):
|
|
`borg delete /media/jerick/8E12F96B12F95923/LinuxBackups/::Monday`
|
|
|
|
Recover disk space by compacting the segment files in the repo
|
|
`borg compact /media/jerick/8E12F96B12F95923/LinuxBackups/`
|
|
|
|
Backup entire system minus games
|
|
`borg create --stats --progress /media/jerick/8E12F96B12F95923/LinuxBackups/::Monday ~ --exclude ~/.steam --exclude ~/VirtualBox\ VMs/ --exclude ~/Games --exclude ~/.cache --exclude ~/NFSFolder`
|
|
|
|
# Media h265
|
|
|
|
Finds all files in subdirectories and encodes them to 1080p h265
|
|
|