Go Back   openSUSE Forums > Archives > SF Archives > ARCHIVES - Programming & Scripting
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - Programming & Scripting A place to discuss website design, programming, shell scripts, etc

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 17-Mar-2008, 06:10
Slipstream
Guest
 
Posts: n/a
Default

Hi,

I'm trying to write a script that backs-up files to an archive partition. My initial thoughts are that I can launch it from a desktop shortcut, as root user. Here's what I've tried so far:

/usr/local/bin/backup.txt
Code:
init 1
rsync -avx /home /archive
As you can see, it copies the /home folder into /archive. Each are on separate partitions. I drop down to init 1, because I figure it will release any locked files and enable them to be copied over. However, after my first attempt, I had to fsck my file system!

So please point me in the right direction before I accidentally electrocute myself, or something even worse happens!!!

Thanks in advance for your replies
  #2 (permalink)  
Old 17-Mar-2008, 17:27
Slipstream
Guest
 
Posts: n/a
Default

Maybe I have to manually drop down to run level 1, using init 1, and then run the script from the command prompt?
 

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2