Solved

Simple Backup of a Linux folder to remote Windows File Server

Posted on 2007-03-27
3
648 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
3 Comments
 
LVL 1

Expert Comment

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

Accepted Solution

by:
freaky_NL earned 125 total points
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now