Thanks Ionel,

I also do astlinux backups via scp to a remote NAS that way.

What I've set up now are automated backups from local laptops into a disk 
directly plugged to the Astlinux box. 
The disk is powered on at specific times, then Astlinux mounts the disk, rsyncs 
some folders in the laptops into it and then umounts the disk and powers it off 
until the next scheduled backup.
It's a cheap solution giving a second life to an old disk and it's working well 
so far.

Regards.



El 30 de abril de 2023 12:42:18 UTC, 
astlinux-users-requ...@lists.sourceforge.net escribió:
>Send Astlinux-users mailing list submissions to
>       astlinux-users@lists.sourceforge.net
>
>To subscribe or unsubscribe via the World Wide Web, visit
>       https://lists.sourceforge.net/lists/listinfo/astlinux-users
>or, via email, send a message with subject or body 'help' to
>       astlinux-users-requ...@lists.sourceforge.net
>
>You can reach the person managing the list at
>       astlinux-users-ow...@lists.sourceforge.net
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of Astlinux-users digest..."
>
>
>Today's Topics:
>
>   1. Re: USB disk automount in Astlinux (Ionel Chila)
>
>
>----------------------------------------------------------------------
>
>Message: 1
>Date: Sat, 29 Apr 2023 08:15:27 -0500
>From: Ionel Chila <ionelch...@me.com>
>To: AstLinux Users Mailing List <astlinux-users@lists.sourceforge.net>
>Subject: Re: [Astlinux-users] USB disk automount in Astlinux
>Message-ID: <c6c8cf80-4cad-46c9-8ae3-d2f07b8da...@me.com>
>Content-Type: text/plain; charset="us-ascii"
>
>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 exile@192.168.0.15:/mnt/kd/USB/*gz  /mnt/user/IOT-BKP/AST-PBX/
>
>
>
>
>
>> On Apr 29, 2023, at 4:52 AM, Gonzalo <goniba...@hotmail.com> 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
>> Astlinux-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/astlinux-users
>> 
>> Donations to support AstLinux are graciously accepted via PayPal to 
>> pay...@krisk.org.
>
>-------------- next part --------------
>An HTML attachment was scrubbed...
>
>------------------------------
>
>
>
>------------------------------
>
>Subject: Digest Footer
>
>_______________________________________________
>Astlinux-users mailing list
>Astlinux-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/astlinux-users
>
>
>------------------------------
>
>End of Astlinux-users Digest, Vol 198, Issue 6
>**********************************************
_______________________________________________
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
pay...@krisk.org.

Reply via email to