excluding compressing itself
This commit is contained in:
parent
9dcd87c658
commit
f79327a11f
@ -51,7 +51,7 @@ class sftp_remote:
|
|||||||
|
|
||||||
#-T3= 3 threads, use 70% of available ram
|
#-T3= 3 threads, use 70% of available ram
|
||||||
if 'tar_recursive' == command_state:
|
if 'tar_recursive' == command_state:
|
||||||
exec_command_state = f"XZ_OPT='-T3 --memlimit-compress=70%' tar -cJf {zipname} {self.path}"
|
exec_command_state = f"XZ_OPT='-T3 --memlimit-compress=70%' tar --exclude={zipname} -cJf {zipname} {self.path}"
|
||||||
elif 'mysqldump' == command_state:
|
elif 'mysqldump' == command_state:
|
||||||
#check README for my.cnf regarding how this works
|
#check README for my.cnf regarding how this works
|
||||||
exec_command_state = f'mysqldump -u root --all-databases > mysqldump.sql'
|
exec_command_state = f'mysqldump -u root --all-databases > mysqldump.sql'
|
||||||
|
Loading…
Reference in New Issue
Block a user