Solved

Simple Backup of a Linux folder to remote Windows File Server

Posted on 2007-03-27
3
653 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

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

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

I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

705 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