Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Archive script using 7zip

Featured Replies

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

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

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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.