Go to file
Pavel Dmitriev 0558fb9b9f delta bugfix 2023-06-21 11:19:04 +03:00
check Added ls-fail check 2021-12-16 17:45:09 +03:00
.gitignore Initial commit 2021-11-02 11:05:23 +03:00
README.md Minor bugfix 2022-06-06 00:42:57 +03:00
backup.sh delta bugfix 2023-06-21 11:19:04 +03:00
config.sample Added GPG encryption by passphrase 2022-06-05 15:15:39 +03:00

README.md

foxBackup

dependencies

  • scp
  • gzip
  • gpg

keys

-f = full backup (if not = increment)

-q - suppress logs output

config options

sqldump_prefix="docker exec -t db mysqldump" = prefix for sqldump

sql_list="dbname dbname2 dbname3:table:table" = sql db list or tables list

files_list="/path/to/folder1 /path/to/folder/2:subfolder:file_in_folder:subfodler/subsub" = file list. Each line in separate archive.

prefix='/path_to_temp_folder'; = prefix for compessed and index folders

sshhost='host'; = ssh host to upload (if empty upload is skipped)

sshport=22;

sshuser='login';

sshkey='/path_to_ssh_private_key';

sshpath='/media/hdd2/backup'; = remote path for SCP store

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