You are not logged in.
Pages: 1
Hi,
I'm using backintime to backup my data to two USB drives. I'm switching the drives from time to time but I never have both drives connected to the PC at the same time.
So my setup looks like this at the moment:
/dev/sdb1 -> /mnt/backup1
/dev/sdc1 -> /mnt/backup2
With backintime configs for each of the drives containing the same config (except the target path which points to one or the other mount point).
I recently setup a cron job to schedule the backup but since only one drive is connected at a time the backup is created on my root drive which is not intended.
I had the idea to mount both USB drives to the same directory (/mnt/backup) and to have just one config. But this is not possible due to multiple entries within fstab.
How can I solve this?
Thanks!
Last edited by Burner (2021-02-07 16:33:57)
Offline
It seems like I am doing something wrong. Is my question understandable?
Offline
Running:
[ mountpoint --quiet /mnt/backup1 ] && backintime --config="<config for backup1>"
[ mountpoint --quiet /mnt/backup2 ] && backintime --config="<config for backup2>"directly from the crontab or indirectly through a script. Would that solve it?
Offline
Running:
[ mountpoint --quiet /mnt/backup1 ] && backintime --config="<config for backup1>" [ mountpoint --quiet /mnt/backup2 ] && backintime --config="<config for backup2>"directly from the crontab or indirectly through a script. Would that solve it?
This solves it half way. But I can figure it out from here by myself. Thanks!
I will create a script mounting each drive after another, checking if the mount was successful. In case it was start backintime with the single config I want for all drives. Since all drives will be mounted to /mnt/backup alternating.
Thank you!
Offline
Pages: 1