projects-jenz/file_mover
2023-09-06 17:55:24 +02:00
..
systemctl updated to xz compression 2023-02-20 21:52:34 +01:00
config_backups.json slight changes to adapt to new place 2023-06-14 23:45:48 +02:00
file_mover.py slight changes to adapt to new place 2023-06-14 23:45:48 +02:00
README.md feex 2023-05-07 16:36:29 +02:00
remote_local_dir.py slight changes to adapt to new place 2023-06-14 23:45:48 +02:00
remote_sftp.py updated the excluded directories 2023-09-06 17:55:24 +02:00
requirements.txt updated directory name, changed configs and systemctl slightly, preparing to make it useable for backups 2021-10-28 22:45:30 +02:00
run_backups.sh updated directory name, changed configs and systemctl slightly, preparing to make it useable for backups 2021-10-28 22:45:30 +02:00
run_demo_mover.sh updated directory name, changed configs and systemctl slightly, preparing to make it useable for backups 2021-10-28 22:45:30 +02:00

simple file mover by jenz

general compression: XZ_OPT='-T3 --memlimit-compress=70%' tar -cJf ovh_backup_2023.tar.xz /home/gameservers/

general decompression: tar -xJf file.pkg.tar.xz

virtualenv venv

source venv/bin/activate

pip3 install -r requirements.txt

config file: server specifics

requires an ~/.my.cnf with

[mysqldump] host="" user="" password=""

python3 file_mover.py config.json

systemctl enable file_mover.timer

systemctl start file_mover.timer

logging: journalctl -f -u file_mover.service

logging: systemctl status file_mover.service