foxBackup/README.md

40 lines
944 B
Markdown
Raw Normal View History

2021-11-02 08:05:04 +00:00
# foxBackup
2021-11-02 09:15:26 +00:00
2021-12-12 11:24:14 +00:00
## keys
2021-11-02 09:17:12 +00:00
2021-11-02 09:15:26 +00:00
-f = full backup (if not = increment)
2021-11-02 09:17:12 +00:00
2021-11-02 09:15:26 +00:00
-q - suppress logs output
2021-11-02 09:17:12 +00:00
2021-12-12 11:24:14 +00:00
## config options
2021-11-02 09:15:26 +00:00
sqldump_prefix="docker exec -t db mysqldump" = prefix for sqldump
2021-11-02 09:17:12 +00:00
2021-11-02 09:15:26 +00:00
sql_list="dbname dbname2 dbname3:table:table" = sql db list or tables list
2021-11-02 09:17:12 +00:00
2021-11-02 09:15:26 +00:00
files_list="/path/to/folder1 /path/to/folder/2:subfolder:file_in_folder:subfodler/subsub" = file list. Each line in separate archive.
2021-11-02 09:17:12 +00:00
2021-11-02 09:15:26 +00:00
prefix='/path_to_temp_folder'; = prefix for compessed and index folders
2021-11-02 09:17:12 +00:00
2021-11-02 09:15:26 +00:00
sshhost='host'; = ssh host to upload (if empty upload is skipped)
2021-11-02 09:17:12 +00:00
2021-11-02 09:15:26 +00:00
sshport=22;
2021-11-02 09:17:12 +00:00
2021-11-02 09:15:26 +00:00
sshuser='login';
2021-11-02 09:17:12 +00:00
2021-11-02 09:15:26 +00:00
sshkey='/path_to_ssh_private_key';
2021-11-02 09:17:12 +00:00
2021-11-02 09:15:26 +00:00
sshpath='/media/hdd2/backup'; = remote path for SCP store
2021-11-02 09:17:12 +00:00
2021-12-12 11:24:14 +00:00
# Check
Run at backup storage, checks expired backups in all forders with prefix backup- in ``prefix`` folder.
All deltas calculated from file names!
## Config
prefix='/mnt/backups'; # Storage prefix
dailySecMax=936000; # DailyDelta in seconds
fullSecMax=29376000; # FullDelta in seconds