Post4VPS Forum | Free VPS Provider

Full Version: Backup HELP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Now its time to backup my vps so can someone tell me how to make a backup with zip, i want to move it to web path(usually /var/www/html/ for Apache) and download it in any other VPS by wget ipofvps/zipname.zip
So can someone tell me how to make a zip backup?
It can be like:
Code:
zip -r backup.zip /your/directory/path/which/need/backuped
I want to backup all my files so shall i use
root@vps4:~# zip -r backup.zip /root
Or another cmd?
(01-09-2018, 02:44 PM)youssefbasha Wrote: [ -> ]I want to backup all my files so shall i use
root@vps4:~# zip -r backup.zip /root
Or another cmd?

If your files are at /root then just backup that folder and if it's present in any other place like /home then you can replace your path with that.
(01-09-2018, 03:23 PM)Dynamo Wrote: [ -> ]If your files are at /root then just backup that folder and if it's present in any other place like /home then you can replace your path with that.

I only have this at the vps
https://vps4.samp-pw.ga and its on root and now i backuped root, how to move it to /var/www/html?
(01-09-2018, 03:27 PM)youssefbasha Wrote: [ -> ]I only have this at the vps
https://vps4.samp-pw.ga and its on root and now i backuped root, how to move it to /var/www/html?

Like if you wants to move backup.zip to /var/www/html/:
Code:
mv backup.zip /var/www/html/
(01-09-2018, 03:56 PM)Dynamo Wrote: [ -> ]Like if you wants to move backup.zip to /var/www/html/:
Code:
mv backup.zip /var/www/html/

root@server:~# wget hidden/backup.zip
--2018-01-09 16:00:39--  hidden/backup.zip
Connecting to hidden:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-01-09 16:00:39 ERROR 404: Not Found.

root@server:~#
(01-09-2018, 04:01 PM)youssefbasha Wrote: [ -> ]root@server:~# wget hidden/backup.zip
--2018-01-09 16:00:39--  hidden/backup.zip
Connecting to hidden:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-01-09 16:00:39 ERROR 404: Not Found.

root@server:~#

Told you, that path only for normal Apache server.
Since it comes from plesks, they have their own paths for it.. either you search there web path and upload there or use scp to directly transfer files from one VPs to another through SSH. https://www.pks.mpg.de/~mueller/docs/sus....copy.html
Can i give you access of my 2 vps and you do it as i really need it and please don't tell me no as i wont trust anyone else Sad
How to make a auto backup script with make backup on every change happens in vps.
Pages: 1 2