LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-18-2020, 06:39 AM   #1
WhiteTiger
LQ Newbie
 
Registered: Nov 2020
Posts: 11

Rep: Reputation: Disabled
Backup for VPS


I have a VPS and a separate space accessible with FTP.
In case of problems I can only recreate the starting image of the VPS. I have no other tools, if not particularly expensive.
Being a VPS I don't have USB ports, tape or burners available.
I therefore have to make a backup via FTP and keep it updated automatically.
In case of problems I should just restore the starting image provided by the ISP and then restore everything I have saved at a given time of a certain day.
Which means backing up the ENTIRE server, including open files.

If then the backup also allows me to recover the single file or the single folder it would be the best.

What do you advise me to do?
 
Old 11-18-2020, 07:41 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Since only you know which ISP you use, and what type of backup this ISP offers, only you can find out what backup options exist. I would use the ISP's documentation or support.

A few general considerations follow.

You may be able to snapshot your server. Depending on the way your ISP implements them, snapshots may not be as safe as backups, but they are a good solution to go back to an earlier version of your filesystem in case you accidentally remove or otherwise damage files. You may also be able to mount a snapshot and just restore single files. You may be able to create several snapshots, e.g. one per day, and keep a certain number of them.

Alternatively, just create a (ideally compressed) tar archive of all your files and store it in that FTP space. You can then recover single files from such an archive without much effort. If your data is very critical, however, the FTP space is problematic, since you are unlikely to know where it is located. Are you sure that this FTP space is available in case the VPS's storage system breaks? If not, store the tar archive in several locations that are unrelated to each other. In that context, I suggest you learn about the 3-2-1 backup strategy (3 copies of your data in 2 formats [disk and tape], 1 copy offsite).

Last edited by berndbausch; 11-18-2020 at 07:46 AM. Reason: added 3-2-1
 
Old 11-18-2020, 09:08 AM   #3
WhiteTiger
LQ Newbie
 
Registered: Nov 2020
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
Since only you know which ISP you use, and what type of backup this ISP offers, only you can find out what backup options exist. I would use the ISP's documentation or support.

A few general considerations follow.

You may be able to snapshot your server. Depending on the way your ISP implements them, snapshots may not be as safe as backups, but they are a good solution to go back to an earlier version of your filesystem in case you accidentally remove or otherwise damage files. You may also be able to mount a snapshot and just restore single files. You may be able to create several snapshots, e.g. one per day, and keep a certain number of them.

Alternatively, just create a (ideally compressed) tar archive of all your files and store it in that FTP space. You can then recover single files from such an archive without much effort. If your data is very critical, however, the FTP space is problematic, since you are unlikely to know where it is located. Are you sure that this FTP space is available in case the VPS's storage system breaks? If not, store the tar archive in several locations that are unrelated to each other. In that context, I suggest you learn about the 3-2-1 backup strategy (3 copies of your data in 2 formats [disk and tape], 1 copy offsite).
I may not have been clear, but I intended to backup from Linux, not using the ISP tools there are, but too expensive for my use of this VPS.

The FTP service is external to the VPS and has nothing to do with it.
So there are no problems of availability.
I can also add that if I close the relationship with this ISP I could use this backup to configure a VPS at another ISP, obviously always starting from a Linux image of the same type: Debian 10 with Debian 10 or Ubuntu 20.04 with Ubuntu 20.04, etc.

I can't adopt the 3.2.1 strategy because with a VPS I don't have two different formats: tape and discs.
I would like to adopt a classic Grandfather-Father-Son backup strategy, but saving the backups to the three different remote destinations, but always using the ftp/sft channel.

It is obvious that such a strategy, as well as 3.2.1, cannot be done by making backups by hand.
This assumes a backup software that at certain times of the day does the Full/Incremental backup depending on the day.
And if the software managed deduplication it would be ideal, to save space and backup time.

I was asking for advice to find the right tool.
Software like Bacula, for example, doesn't seem like the right tool for a VPS.

Last edited by WhiteTiger; 11-18-2020 at 09:10 AM.
 
Old 12-28-2020, 12:06 AM   #4
normscherer
Member
 
Registered: Sep 2005
Location: Prescott, AZ
Distribution: Ubuntu Mate 18 LTS
Posts: 50

Rep: Reputation: 15
I find my vps is very reliable and I have never lost anything unless I screwed it up myself. I have scripts I keep that will enable me to recreate any of my vps's at any time. I usually do experiments on a local virtual box so I do not mess up my production server and I use rsync from a cron job for backups of anything hard to recreate like my source repository.
 
Old 01-13-2021, 06:43 AM   #5
abragred
LQ Newbie
 
Registered: Jan 2021
Posts: 1

Rep: Reputation: Disabled
I agree with the above comment, I haven't faced any issues with the VPS I have, and having scripts to recreate any point is the best and most secure way to go. I use the Linux VPS server from a company that one of my friends recommended and I'm really impressed with the services overall. I think that's also to take into consideration when choosing what host you want, and it relates directly to how much you have to stress about securing your data and preparing in case of server failure. Because I use servers I find it even more important to look at reviews and ratings than you would normally do when looking to buy a PC or a laptop.

Last edited by abragred; 01-18-2021 at 04:09 AM.
 
  


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
Remote Backup script needed | backup every 1-2 seconds (Online/Hot backup) reda Linux - Newbie 4 04-20-2019 05:02 PM
[SOLVED] Backup, shrink backup and modify MBR of backup jps1x2 Linux - General 1 12-17-2013 05:03 AM
How to redirect all traffic from a VPS to another VPS 124748768 Linux - Networking 0 07-08-2011 10:36 AM
2 vps vs 1 vps bmayhem Ubuntu 0 05-04-2009 03:08 PM
Where can I download UML VPS or Xen VPS to make a virtual private server? abefroman Linux - Software 3 12-09-2005 10:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:44 PM.

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