Gonzalo I backup my PBX in 2 places.
1. I have a permanent USB disk mounted as /mnt/kd/USB/ and a script in the crontab takes care of the backup: 0 4 * * * tar czf /mnt/kd/USB/backup.`date "+%Y-%m-%d"`.tar.gz $(ls -1 /mnt/kd/ | sed -e "s/^cdr-.*//" -e "s/^USB$//" -e "s/^monitor$//" -e "s/^voicemail$//") -C /mnt/kd 2. My NAS running UnRaid also pulls a backup from the USB drive remotely via scp. You need to do the ssh key setup and so it does not prompt you for password. I do pull backups remotely from all my IOT and other devices. #!/bin/bash scp -r [email protected]:/mnt/kd/USB/*gz /mnt/user/IOT-BKP/AST-PBX/ > On Apr 29, 2023, at 4:52 AM, Gonzalo <[email protected]> wrote: > > Hi, > > Thank you Ionel and Lonnie. > > The idea was to mount the disk not only at startup but each time the disk is > plugged and keep it switched off most of the time but I'll have to mount it > with a custom script instead of automatically. > I have a remote controlled switch which I use to power on the disk each time > I want to perform a backup. > > Regards. > _______________________________________________ > Astlinux-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/astlinux-users > > Donations to support AstLinux are graciously accepted via PayPal to > [email protected].
_______________________________________________ Astlinux-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to [email protected].
