Home : Fix backup archive changes.

This commit is contained in:
Dmitry Voronin 2024-05-08 21:19:35 +03:00
parent 83a5c4122a
commit 4087367124
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -33,17 +33,17 @@
# Save media list.
find ''${path_media} -type d > ''${path_backup}/cold/ColdMedia.txt || report "Backup : Failed to save media list!"
cd ''${path_backup}/cold/
archive_fast ColdMedia.txt && rm ColdMedia.txt || report "Backup : Failed to archive media list!"
archive ColdMedia.txt && rm ColdMedia.txt || report "Backup : Failed to archive media list!"
cd -
# Backup docker.
docker=$(archive_fast docker/)
docker=$(archive docker/)
bupsize=$(tdu ''${docker} | awk '{print $1}')
mv ''${docker} ''${path_docker}/ || report "Backup : Failed to save docker!"
# Backup some media.
cd ''${path_src}/media/
paper=$(archive_fast paper/)
paper=$(archive paper/)
mv ''${paper} ''${path_backup}/paper/ || report "Backup : Failed to save paper!"
cd -