From Wet Mockingbird, 1 Year ago, written in Plain Text.
This paste is a reply to Re: Untitled from Elder Lund - go back
Viewing differences between Re: Untitled and Re: Re: Untitled

export RESTIC_PASSWORD=(password)
set -eo pipefail

# Dump databases to (temporary) file at root.
mysqldump -u root -p(password) --all-databases > databases./databases.sql
# Echo crontab for root user to (temporary) file at root.
crontab -u root -l > root./root.cron

restic -r /run/media/orca/DataCabinet backup /home/program /etc/httpd/conf /etc/httpd/conf.d /var/www/html /var/www/cgi-bin /home/vpopmail/domains /var/qmail/control /var/qmail/users /etc/cron.d/program* root./root.cron databases./databases.sql /var/tinydns/root/data /etc/sysconfig/network-scripts

# Remove those temporary files placed at the root directory.
rm -rf /databases.sql /root.cron