Compare commits
1 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 6110c80b25 |
@@ -4,7 +4,7 @@ After=network.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
Environment="PARTUUID=7b2d5cb6-01" "MOUNTPOINT=/mnt/backup" "SOURCE=/home"
|
||||
Environment="MOUNTPOINT=/mnt/backup" "SOURCE=/home"
|
||||
ExecStart=/usr/local/bin/autobackup.sh
|
||||
StandardOutput=append:/var/log/autobackup.log
|
||||
StandardError=append:/var/log/autobackup_error.log
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#! /usr/bin/bash
|
||||
|
||||
echo "mounting ${PARTUUID} to ${MOUNTPOINT}"
|
||||
mount -t ext4 PARTUUID="${PARTUUID}" ${MOUNTPOINT}
|
||||
echo "mounting ${MOUNTPOINT}"
|
||||
mount ${MOUNTPOINT}
|
||||
|
||||
if ! mountpoint -q ${MOUNTPOINT} ; then
|
||||
echo "Backup Stick not mounted" >&2
|
||||
|
||||
Reference in New Issue
Block a user