I actually have two backup methods.

The first does a daily local backup (rotated weekly) of asturw (which
includes /mnt/kd in my case) to a separate internal drive so I can revert
back in the event I break something, as well as having a local copy in case
of a primary drive failure, data loss or corruption, etc.

I also do a remote/offsite backup via rsync every 15 minutes (I know,
probably a bit overkill, but why not?). Both are handled on the PBX from
crontab:

0 4 * * * tar -cvf /mnt/opt/backup/backup.asturw.`date +%a`.tar -C
/oldroot/mnt/asturw etc mnt stat usr
0,15,30,45 * * * * rsync --log-file=/var/log/rsync.log -aczv
/oldroot/mnt/asturw rsyncer@backup:/home/rsyncer/pbxbackup/ 2>&1 > /dev/null

So I can go back in time up to a week:
-rw-r--r--    1 root     root     975690240 Aug 21 04:02
backup.asturw.Fri.tar
-rw-r--r--    1 root     root     975112704 Aug 24 04:02
backup.asturw.Mon.tar
-rw-r--r--    1 root     root     976172032 Aug 22 04:02
backup.asturw.Sat.tar
-rw-r--r--    1 root     root     974568448 Aug 23 04:02
backup.asturw.Sun.tar
-rw-r--r--    1 root     root     975181824 Aug 20 04:02
backup.asturw.Thu.tar
-rw-r--r--    1 root     root     975925248 Aug 25 04:02
backup.asturw.Tue.tar
-rw-r--r--    1 root     root     976478208 Aug 26 04:02
backup.asturw.Wed.tar

Or I can pull from the offsite repository in the event I have a bigger
issue. The daily psuedo-incremental backup has actually saved me on a
couple occasions.

--James

On Tue, Aug 25, 2015 at 11:12 AM, Ionel Chila <ionelch...@yahoo.com> wrote:

> Does anyone have an automated way to backup an Astlinux box?  Scripts,
> crontabs or anything like that?  I know we can do it manually but I am more
> interested in something that is automated and it can send backups to lets
> say a USB drive or an external server. Can any one share please?
>
> I greatly appreciate it.
> Ionel Chila
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> 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.
>
------------------------------------------------------------------------------
_______________________________________________
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