LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-11-2020, 04:25 PM   #1
MDM-Pen
LQ Newbie
 
Registered: Apr 2020
Distribution: kubuntu
Posts: 5

Rep: Reputation: Disabled
Scheduled Backup Software - Backup Linux to Mac server on same internal network


QUESTION (BRIEF):
Can anyone recommend an automatic backup solution for a Linux desktop computer (I currently run Kubuntu)? The catch, for me, is that my backup disks for my entire household live in an old Mac Pro tower (running macOS High Sierra) that is living a second life as a backup/media server, so (ideally) the solution needs to allow backups from Linux to a macOS server over SMB. My ideal solution would allow me to clone my Linux system/boot drive, and then any other internal volumes I have in the desktop machine, (my habit is to store all of my personal documents and media on drives that are separate from the system disk) on an automated, multiple times per day schedule.


BACKGROUND:
I'm slowly preparing a big switch from macOS to Linux (so I'm a Linux noob). My current daily driver is a hackintosh tower that I've been dual booting into Linux over the past few months so that I can learn the Linux ecosystem (I have a long way to go). Most of what I need to make the switch is in place, but I haven't worked out an automated backup system yet. I'm spoiled by the convenience of Apple's time machine, which I currently use to back up all of the Macs in my house to the old Mac Pro. I'd like to use this Mac Pro server to store backups of my new Linux system as well, as I have lots and lots of storage space available there (and if there is ever an emergency like a fire, I only need to grab this one single machine as I run screaming from the house : ) I've been doing a lot of internet research on the topic and much of what I'm coming up with is above my current skill level. I was hoping, before I dive in and just start trying things out, that I might be given a nudge in the right direction.

Thank you everyone for any suggestions!
 
Old 04-13-2020, 01:23 AM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,295
Blog Entries: 3

Rep: Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719
Welcome.

One way would be to use rsync to copy from your computer to your backup server. If you mount the file system over SMB you can do it from directory to directory, just like if they were both local. Or you can use rsync directly over SSH, if you turn on SSH in your backup server.

Either way, it would be some variation like this:

Code:
rsync -a -v --progress /source/directory/ /destination/directory/

# or

rsync -a -v --progress /source/directory/ mdmpen@hackintosh:/destination/directory/
The second example will work from anywhere in the world, as long as the destination is accessible and you are able to log in via SSH.

All that is scriptable. rsync can even do incremental backups similar to TimeMachine, if configured to do so.

If you want something fancier, ready-made, and (in my opinion) harder, then you can look at Bacula, Amanda, BackInTime or others.
 
1 members found this post helpful.
Old 04-13-2020, 11:38 AM   #3
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,725

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
I always suggest rsnapshot in threads with these questions. It's a perl wrapper over rsync with an easy-to-use configuration file. It will even create and install the necessary cron jobs, if desired. https://rsnapshot.org
 
1 members found this post helpful.
Old 04-13-2020, 02:46 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Howdy!

There are so many backup solutions and almost all of them are meant to be networked. Even the lonely cp/tar.gz to nc can be used.

Peek at these lists maybe for some ideas. Any backup plan is better than none usually.

https://help.ubuntu.com/community/BackupYourSystem
Generally use distro ideas I'd think.

http://www.linuxandubuntu.com/home/1...ckup-solutions

https://www.ubuntupit.com/free-open-...are-for-linux/

Also in that are some advanced file/partition systems that have built in data security.

Last edited by jefro; 04-13-2020 at 02:47 PM.
 
1 members found this post helpful.
Old 05-07-2020, 09:14 AM   #5
MDM-Pen
LQ Newbie
 
Registered: Apr 2020
Distribution: kubuntu
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thank you, everyone, for your suggestions! Again, all the solutions I was coming across in my Google quest appeared to require a major beef up of my admin skills. It was nice to get some opinions before choosing a solution to dive in and play with.

I ultimately dove in with rsnapshot. From what I can tell so far, it is a more robust solution, for my purposes, than even Time Machine was. I get incremental backups, with the ability to revert to previous versions of files, like Time Machine, without everything being locked up in a proprietary black box. Instead the whole backup is accessible via a file manager. Love it! I had to learn a lot to set this up, but I'm glad I did it. A major snag in my setup was that my client computer is not always powered on and accessible to the backup server - I had to figure out how to write a script to check and make sure that the client is available before initiating rsnapshot. Not a hard thing, in the end, but something that, previously, seemed above my pay grade. Also had to learn Apple's launchd system. Good learning experience all around.

Thank you, again, everyone!
 
Old 05-07-2020, 09:37 PM   #6
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,295
Blog Entries: 3

Rep: Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719
Quote:
Originally Posted by MDM-Pen View Post
A major snag in my setup was that my client computer is not always powered on and accessible to the backup server - I had to figure out how to write a script to check and make sure that the client is available before initiating rsnapshot.
If they are on the same LAN or if your router can trigger, and if the machine supports it, then you could use Wake-on-LAN and have the backup script wake up the other computer when it needs to. However, it would take a bit of work to have it figure out whether or not it should put it back to sleep after the backup is completed.
 
1 members found this post helpful.
Old 05-07-2020, 10:54 PM   #7
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,725

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
I'm glad that rsnapshot helped.
I use it on my "client" 'puter (this one) to pull from the production server...so if the client's not up, the backup doesn't happen...so as long as the local power company is working, I get a backup every night.
(I've 3 windows 'puters and this Linux box running 24x7, plus a couple of iPads and iPhones. That, plus the A/C on 100+ degree days keep the local power company very happy with me.)
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Same MAC for Multiple computers on same network zaheerabbas1988 Linux - Newbie 20 01-22-2017 07:03 PM
Copy an internal hard drive as backup? Restore an internal drive? Peufelon Linux - Hardware 2 06-15-2008 03:28 PM
scheduled backup - WinXP to Linux samengr Linux - General 4 01-23-2008 07:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration