Migrated to '/bin/sh'

This commit is contained in:
2024-02-27 10:03:12 +01:00
parent 0918139225
commit 39a15d2f2a
5 changed files with 150 additions and 220 deletions

6
man.md
View File

@@ -3,7 +3,7 @@ title: backup.sh
section: 1
header: General Commands Manual
footer: Marco Cetica
date: October 10, 2023
date: February 27, 2024
---
# NAME
@@ -98,7 +98,7 @@ You can also use **backup.sh** from a crontab rule:
```
$> sudo crontab -e
30 03 * * 6 EKEY=$(cat /home/john/.ekey) bash -c '/usr/local/bin/backup.sh -b /usr/local/etc/sources.bk /home/john $EKEY' > /dev/null 2>&1
30 03 * * 6 EKEY=$(cat /home/john/.ekey) sh -c '/usr/local/bin/backup.sh -b /usr/local/etc/sources.bk /home/john $EKEY' > /dev/null 2>&1
```
This will automatically run **backup.sh** every Saturday morning at 03:30 AM.
@@ -154,7 +154,7 @@ $> gpg -a \
--cipher-algo=AES256 \
--no-symkey-cache \
--pinentry-mode=loopback \
--batch --passphrase-fd 3 3<<< "$PASSWORD" \
--batch --passphrase-fd "$PASSWORD" \
--output "$OUTPUT" \
"$INPUT"
```