-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with mount:bind volume : Failed to create file system for "rclone_backup:/config" #29
Comments
Hey @MilesTEG1 , The way the volume is mounted does not affect the backup tool working. Based on the error message, it looks like the You need to configure rclone in advance by running the following command:
If you think you have configured it correctly, use |
Hello, i'll try to launch the command you gave me. Thanks for your help. |
Ok, after configuring rclone and recreate the container with new parameters according to my rclone config, there is a backup done 😃 ---
version: "2.4"
services:
vaultwarden_backup_ttionya: # Voir : https://github.com/ttionya/vaultwarden-backup
image: ttionya/vaultwarden-backup:latest
container_name: vaultwarden_backup_ttionya
networks:
- vaultwarden_network
restart: always
# depends_on:
# vaultwarden:
# condition: service_healthy
labels:
- "com.centurylinklabs.watchtower.enable=true"
volumes:
- /volume1/docker/vaultwarden/vaultwarden-data:/data
# Chemin d'accès pour stocker le backup, voir https://github.com/ttionya/vaultwarden-backup
- /volume1/docker/vaultwarden/vaultwarden-backup_ttionya:/config
- /volume1/docker/vaultwarden/vaultwarden-backup_ttionya/rclone_backup:/rclone_backup
environment:
- DATA_DIR=/data
- RCLONE_REMOTE_NAME=Backup_Syno
- RCLONE_REMOTE_DIR=/rclone_backup/
# Utiliser soit SCHEDULE soit INTERVAL (ce dernier en sec)
# Pour SCHEDULE : https://crontab.guru/#0_9_*_*_*
# Ajouter un 0 en premier pour les secondes : secondes | minutes | heures | jour du mois | mois | jour de la semaine
- CRON=0,30 * * * *
- ZIP_ENABLE=TRUE
#- ZIP_PASSWORD=WHEREISMYPASSWORD?
- ZIP_TYPE=7z
- BACKUP_FILE_DATE_SUFFIX=--%Hh%Mm%Ss
- BACKUP_KEEP_DAYS=7
# - MAIL_SMTP_ENABLE=FALSE
# - MAIL_SMTP_VARIABLES=''
# - MAIL_TO=''
# - MAIL_WHEN_SUCCESS='TRUE'
# - MAIL_WHEN_FAILURE='TRUE'
- TIMEZONE=Europe/Paris
networks:
vaultwarden_network:
external:
name: vaultwarden_network But the cron value seems to not be correctly interpreted... edit : my bad, my cron value wasn't correct... I edited to @ttionya Can you add in the documentation how to create the rclone.conf for a local backup ? [RCLONE_REMOTE_NAME]
type = local Like this, there is no need to launch a command line in SSH. |
Hey @MilesTEG1 , I'm glad you solved the problem yourself. Backing up files locally is not safe, especially since this backup file has your password in it. Considering that the person using this backup tool may not be familiar with backups, any advice prompting backups to local may mislead them. So I won't give them advice. But I will add more prominent hints to the documentation for users to configure Finally I would suggest that you back up your files to cloud storage to prevent any local corruption. |
@ttionya For the fact that I'm backing-up to a local storage, what I didn't tell is that I backup every night severals local folders in drive1 to another drive in my NAS (for a fast recovery in case of the drive1 failed), AND, there is another backup to a cloud every night. For your image backup, I set up the cron to made the backup at 22h00, severals hours before the HyperBackup task (Synology inside). I agree with you not advice to do a local backup. |
Hello,
I'm trying to get your image working on my installation.
I use Vaultwarden in docker on my Synology NAS (DS920+).
I don't use volume like you set in your docker-compose.yml file, but I use bind:mount volume with folders created on my NAS to store the data.
But with this type of volume, there is an error and the container failed to start and no backup are done.
Is it possible to have your image working with a mount:bind volume ? And how ?
The container log :
My
docker-compose.yml
file :Thanks for your help.
The text was updated successfully, but these errors were encountered: