Solved

Simple Backup of a Linux folder to remote Windows File Server

Posted on 2007-03-27
3
652 Views
Last Modified: 2012-08-13
Hi,
I'm trying to backup a specific folder in Linux (Red Hat) and been trying to come up with very simple script to do so.  I'm mkdir a directory call 'backup'.  Then I tar the folder I want and have it dump to the folder call 'backup'.  After that, I cp the file to a Windows Network Share.  The problem is every time I run these command in a script format in bash, it chokes.  Just wondering what I'm doing wrong?
0
Comment
Question by:yackko
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 1

Expert Comment

by:midrisi
ID: 18799876
Can you send me the script? then I can check off.
0
 
LVL 4

Accepted Solution

by:
freaky_NL earned 125 total points
ID: 18807311
Would like to the script as well.

Why don't you write the tar straight to the fileserver btw?

Sort of like

tar -jcvpf /path/to/windows/share/backup.tbz2 /dir/to/backup

options:
j = bzip2 (either compress or uncompress)
c = compress
v = verbose (you should remove this in scripts i guess)
p = permissions (stores the file permissions)
f = to specify filename
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question