You are not logged in.

#1 2021-01-11 21:22:29

Burner
Member
Registered: 2017-03-26
Posts: 36

[SOLVED] Backintime multiple USB drives

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

#2 2021-01-17 13:15:02

Burner
Member
Registered: 2017-03-26
Posts: 36

Re: [SOLVED] Backintime multiple USB drives

It seems like I am doing something wrong. Is my question understandable?

Offline

#3 2021-01-18 07:25:57

willemw
Member
Registered: 2013-02-19
Posts: 116

Re: [SOLVED] Backintime multiple USB drives

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

#4 2021-02-07 16:30:33

Burner
Member
Registered: 2017-03-26
Posts: 36

Re: [SOLVED] Backintime multiple USB drives

willemw wrote:

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

Board footer

Powered by FluxBB