Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Apr 28, 2005 8:41 pm 
Offline
Senior Member

Joined: Sun Nov 14, 2004 6:37 pm
Posts: 138
Website: http://oldos.org
WLM: jasonlfaulkner@hotmail.com
Yahoo Messenger: jasonfncsu
AOL: jaylfaulkner
Location: NC, USA
I'm running a Xen-node as a test, in addition to my linode.

Is there an easy way to sync-up the /web (where my wwwdata is kept) folders in there? I was thinking rsync, but any type of automated solution would be good.

The only real issue I can think of is that i have a few symbolic links in there, in order to make it easy for someone to keep webspace in their home folder.

Also, what's the command to setup a cron to backup the DB daily, bzip2 it, and name it "dbbackup4-21.bz2, dbbackup4-22.bz2" etc etc etc.

Thanks :)

Jay

_________________
Jay Faulkner
http://oldos.org


Top
   
 Post subject:
PostPosted: Thu Apr 28, 2005 11:05 pm 
Offline
Senior Member

Joined: Fri Aug 06, 2004 5:49 pm
Posts: 158
You can look up the options for what to do with symlinks in the rsync man page. As for you backups, you can write a script along these lines and cron it:

Code:
DESTDIR=/backup/root/`date "+%Y-%m"`
FILENAME=dbbackup-`date "+%Y-%m-%d-%H%M"`.tgz

mkdir -p ${DESTDIR}
tar -C ${SRCROOTDIR} -czpf ${DESTDIR}/${FILENAME} ${SRCDIR}


You can do the necessary changes for bzip compression instead of gzip, but that should get you going.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group