diff --git a/file_mover/remote_sftp.py b/file_mover/remote_sftp.py index 2b58c460..75b735df 100755 --- a/file_mover/remote_sftp.py +++ b/file_mover/remote_sftp.py @@ -50,9 +50,8 @@ class sftp_remote: channel = self.ssh.get_transport().open_session(timeout=120) #-T3= 3 threads, use 70% of available ram - #TODO exclude dir where hlstats spams pictures of the player graphs if 'tar_recursive' == command_state: - exec_command_state = f"XZ_OPT='-T3 --memlimit-compress=70%' tar --exclude={zipname} --exclude=/home/nonroot/backups --exclude=/home/nonroot/demos --exclude=/home/nonroot/snap --exclude=logs/ --ignore-failed-read -cJf {zipname} {self.path}" + exec_command_state = f"XZ_OPT='-T3 --memlimit-compress=70%' tar --exclude={zipname} --exclude=/home/nonroot/backups --exclude=/home/nonroot/demos --exclude=/home/nonroot/snap --exclude=logs/ --exclude=/home/autismbot1 --exclude=/home/autismbot2 --exclude=/home/autismbot3 --exclude=/home/autismbot4 --exclude=/home/nonroot2 -cJf {zipname} {self.path}" elif 'mysqldump' == command_state: #check README for my.cnf regarding how this works exec_command_state = f'mysqldump -u backups_db --all-databases > mysqldump.sql'