kopia lustrzana https://github.com/modem7/docker-borgmatic
16 wiersze
289 B
Plaintext
16 wiersze
289 B
Plaintext
# shellcheck shell=sh
|
|
#!/usr/bin/with-contenv sh
|
|
|
|
timestamp() {
|
|
date -I'seconds' # ISO-8601 format
|
|
}
|
|
|
|
# Any steps necessary to prepare the backup (stopping the service/taking
|
|
# a snapshot...
|
|
do_something() {
|
|
echo 'Doing something'
|
|
}
|
|
|
|
echo "$(timestamp) - Starting backup"
|
|
do_something
|