Skip to content

uses config files to backup btrfs, zfs, file, directory, mysql and kvm to other disk or server

License

Notifications You must be signed in to change notification settings

m-k-r/own-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This script is intended as a automated backuptool used with cron and depends on own-snapshot.
Elements and jobs (atm modifier, later multiple elements and modifier) are used to define mode, names, timestamp format, source and target. Both Source and Target can be offside.
Snapshots are supported for zfs, kvm (qm), files, directories, mysql and postgresql and stored as zfs, btrfs or file.
zfs, btrfs and qm use their own tools, directories and files are snapshotted via rsync. Additionally files, mysql and pgsql can be encrypted. The encryption takes place on the source server before copying to the target server or disk.

usage

own-backup -e $ELEMENT (-j $JOB)

additional:
-c : initial config, upgrade elements
-d : check, or show export and import variables of a dump, or create a dump
-f : overrides the frequency
-g : overrides the target
-m : copies multiple (or all) newer snapshots instead of the last
-n : overrides limit for snapshots
-o : output: commands, datasets, snapshots, snapvars, full
-r : rollback
-s : overrides snapshotname
-t : overrides the date

Example configs can be found in the template directory.

About

uses config files to backup btrfs, zfs, file, directory, mysql and kvm to other disk or server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages