Previous Thread
Next Thread
Print Thread
Rate Thread
-Fusion- #240859 03/19/2003 11:57 AM
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
I like tar/gzip:

tar -zcvpf /path/to/save/backup.tar.gz . --directory /directory/to/backup

z = compress
c = create new archive
v = verbose (just to see what its doing)
p = preserve permissions
f = the path following this is where to save the file

I just backed up my whole 1.5 GB site and moved it to a new server. Ran that command from my home directory, it packaged it all up perfectly. Transfered it to my new server, put the tarball in the home directory and ran this:

tar -zxvpf backup.tar.gz --directory /home/myfolder/

It was great, it extracted all of my directories and preserved all of the file permissions in a matter of minutes

If you want and don't use a control panel like cPanel and such, you could create a cron job to do this every night if you wanted.. to run the backup of a specified folder and store them on the server

Sponsored Links
Entire Thread
Subject Posted By Posted
A zip script JoshPet 03/16/2003 8:47 PM
Re: A zip script Gardener 03/16/2003 9:19 PM
Re: A zip script JoshPet 03/16/2003 9:28 PM
Re: A zip script JoshPet 03/16/2003 9:54 PM
Re: A zip script Gardener 03/16/2003 10:05 PM
Re: A zip script Dave_L_dup1 03/16/2003 11:14 PM
Re: A zip script Gardener 03/17/2003 12:05 AM
Re: A zip script Astaran 03/17/2003 12:07 AM
Re: A zip script JoshPet 03/17/2003 5:49 AM
Re: A zip script JoshPet 03/18/2003 7:48 AM
Re: A zip script JoshPet 03/18/2003 7:50 AM
Re: A zip script Astaran 03/18/2003 11:01 AM
Re: A zip script msula 03/19/2003 6:57 PM
Re: A zip script navaho 03/20/2003 6:59 AM
Re: A zip script JoshPet 03/20/2003 7:21 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,825
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 1811
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 2
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)