January 14, 20251 yr Hi, I used to run a script to compress and save a folder on a weekly basis : #!/bin/bash # params SRC=/mnt/user/ DST=/mnt/user/backup/snapshots/ TDY=$(date +"-%Y-%m-%d") MAX_DAYS=50 PWD=xxxx # remove older files find $DST* -mtime +$MAX_DAYS -exec rm {} \; # back up directories for dir in documents photos do 7z a -mhe -mx0 -t7z -p$PWD $DST$dir$TDY.7z $SRC$dir done It looks not to run anymore (likely for a while), as 7z is no more there, and as far as I remember it was part of the NerdPack that looks deprecated. How can I get 7z back ? Or change my script to something more up-to-date maybe ? Many thanks G
January 15, 20251 yr https://slackers.it/repository/slackware64-current/p7zip/ download the "p7zip-17.05-x86_64-1cf.txz" and put it in the extra folder on the usb, once in there, you can run "upgradepkg --install-new /boot/extra/p7zip-17.05-x86_64-1cf.txz" to install it without having to reboot. if you want to change your script, thats up to you
January 15, 20251 yr A better option is to use docker, I use a command something like this to extract archives on the unraid command line. This command works in place of 7z x I use docker run --rm --workdir /data -it -v $PWD:/data crazymax/7zip 7z x
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.