Solved

Simple Backup of a Linux folder to remote Windows File Server

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
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…

840 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