Re: mounting backup filesystem on-demand (was Re: Checking for a mount in a shell script)

2025-05-21 Thread Jonathan Dowland
On Wed May 21, 2025 at 10:09 AM BST, Dan Purgert wrote: As far as I know namespaces (read: poorly), the backup script would need to execute setns(2) in order to join the previously created namespace for your "/backup" target. But, I've only used them with networking devices, so there may be ot

Re: mounting backup filesystem on-demand (was Re: Checking for a mount in a shell script)

2025-05-21 Thread Jonathan Dowland
On Wed May 21, 2025 at 10:05 AM BST, Nicolas George wrote: Does it mean you like your backup drive to be permanently plugged to the computer? That protects you from hardware failures and human mistakes, but not from large physical damage or theft. This drive is permanently connected to this co

Re: mounting backup filesystem on-demand (was Re: Checking for a mount in a shell script)

2025-05-21 Thread tomas
On Wed, May 21, 2025 at 11:38:38AM +0200, Nicolas George wrote: > to...@tuxteam.de (HE12025-05-21): > > Actually, this makes a lot of sense (well, nearly): keep backup constantly > > synced, unmount/mount only on media rotation, carry freshly unmounted > > medium to safe place. > > It only becomes

Re: mounting backup filesystem on-demand (was Re: Checking for a mount in a shell script)

2025-05-21 Thread Nicolas George
to...@tuxteam.de (HE12025-05-21): > Actually, this makes a lot of sense (well, nearly): keep backup constantly > synced, unmount/mount only on media rotation, carry freshly unmounted > medium to safe place. It only becomes an effective backup at the time it is unmounted to move the medium to the s

Re: mounting backup filesystem on-demand (was Re: Checking for a mount in a shell script)

2025-05-21 Thread tomas
On Wed, May 21, 2025 at 11:05:37AM +0200, Nicolas George wrote: > Jonathan Dowland (HE12025-05-21): > > I'd like /backup permanently > > mounted > > Does it mean you like your backup drive to be permanently plugged to the > computer? That protects you from h

Re: mounting backup filesystem on-demand (was Re: Checking for a mount in a shell script)

2025-05-21 Thread Nicolas George
Jonathan Dowland (HE12025-05-21): > I'd like /backup permanently > mounted Does it mean you like your backup drive to be permanently plugged to the computer? That protects you from hardware failures and human mistakes, but not from large physical damage or

Re: mounting backup filesystem on-demand (was Re: Checking for a mount in a shell script)

2025-05-21 Thread Dan Purgert
On May 21, 2025, Jonathan Dowland wrote: > On Tue May 20, 2025 at 3:50 PM BST, Dan Purgert wrote: > > I used /mnt/backup because I only wanted the partition mounted while the > > backup was running (it was one of several on that physical drive). The > > backup script did the mount/rsync/unmount as

mounting backup filesystem on-demand (was Re: Checking for a mount in a shell script)

2025-05-21 Thread Jonathan Dowland
On Tue May 20, 2025 at 3:50 PM BST, Dan Purgert wrote: I used /mnt/backup because I only wanted the partition mounted while the backup was running (it was one of several on that physical drive). The backup script did the mount/rsync/unmount as part of the execution. Really, the only point of th