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 25-Feb-2008, 22:50
Wraithman86
Guest
 
Posts: n/a
Default

Hey guys I have to small issues that I was hoping I could get some help with. First is a script using tar. Keep in mind that I am a noob lol, and this is my first script. I am taring tar files within a directory, for example, /backup/working/files. How can I back it up without the tar file containing /backup/working/files? I would prefer that when open it up it starts at /files/-then goes into the other tar files.
The other issue is SCP. How can I use it in a script as I cannot type in my password. I was told to use public and private keys, but I am not sure how secure they are. Any help would be great thanks

  #2 (permalink)  
Old 06-Mar-2008, 21:58
suseforumsnet42
Guest
 
Posts: n/a
Default

For additional info type:
"man tar" or "info tar" at a shell prompt

Sometimes it's easier to read via Konqueror. Just type "man:/tar" in the address text field.

Look at tar's, change directory, include, and exclude options.

Might want to take a gander at rsync.

This might help:
How to Copy Files Across a Network/Internet in UNIX/LINUX (Redhat, Debian, FreeBSD, etc) - scp tar rsync


 

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