update tar sql file
This commit is contained in:
parent
03c5a9b66f
commit
ee56b54e4c
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue