backup-docker/interactive.sh

21 lines
773 B
Bash
Raw Normal View History

2022-03-27 00:31:46 +00:00
#!/usr/bin/env bash
2021-11-10 20:27:49 +00:00
mkdir -p /restore
echo "### Interactive mode ###"
echo "Remote: $RESTIC_REPOSITORY"
echo "Volumes mounted at /backup"
echo "########################"
echo "rclone config # edit/add remote"
echo "restic init # create new repo"
echo "restic snapshots # list backups"
2022-03-27 00:31:46 +00:00
echo "restic restore latest --target /restore # restore latest backup to /restore"
2021-11-10 20:27:49 +00:00
echo "restic dump latest /backup/sqlDump/dbname.sql # Dump sql dump to console"
echo "/app/backup.sh # Create backup"
echo "/app/mysql.sh # Open mysql client"
echo "########################"
export PS1="[${RCLONE_REMOTE} \w]\$ "
bash -i