From ee56b54e4c38dfc46826c1d8bee12be2db76a6df Mon Sep 17 00:00:00 2001 From: infernvs Date: Thu, 10 May 2018 08:51:51 +0100 Subject: [PATCH] update tar sql file --- backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.sh b/backup.sh index efd27bd..9a2c2d8 100644 --- a/backup.sh +++ b/backup.sh @@ -38,7 +38,7 @@ restic -r sftp:$sshuser@$sshhost:$dest -p /root/pw backup $backup_files mysqldump --user=$user --events --ignore-table=mysql.event --password=$password --all-databases > $tmp_dir/$db_name-$date.sql -tar -cpzf $tmp_dir/$sql_file --directory=/ --exclude=proc --exclude=sys --exclude=dev/pts --exclude=$tmp_dir $src_dir +tar -cpzf $tmp_dir/$sql_file --directory=$tmp_dir/$db_name-$date.sql restic -r sftp:$sshuser@$sshhost:$dest -p /root/pw backup $src_dir/$sql_file