Solved

backup files from solaris to windows

Posted on 2004-03-23
2
398 Views
Last Modified: 2013-12-21
I realize this is fairly simple, but I am fairly new to Unix/Linux and need a simple solution to the following.  I need to be able to copy files from a Solaris 8 machine to a windows 2000 Server (specifically the home directory on Solaris).   I have configured Samba on Solaris and am able to copy some files, but get a variety of errors on other files (file may be in use/ insufficient permissions etc.).  Instead of wasting time on this, I need a simple way to routinely make a backup copy of the home directory on Solaris to a windows 2000 machine (sam lan, etc.) I actually have a windows folder successfully mounted on the Solaris server and now just need the command to backup this folder. I would like to do something similar on Linux as well. Any suggestions?
0
Comment
Question by:snakepliskin
2 Comments
 
LVL 18

Expert Comment

by:liddler
ID: 10656133
If the windows directory is mounted on the Sun box and the Solaris user have write permission to the Windows folder, simply use cp, or cp -r (for directories)
i.e.
cp -r /home/user1 /windows_mount

Same should wirk in linux
0
 
LVL 12

Accepted Solution

by:
stefan73 earned 450 total points
ID: 10657283
Hi snakepliskin,
Use tar/gtar:

tar -cf /windows_mount/backup_${HOST}_`date +'%Y%m%d%H%M%S'`.tar [list of directories to backup]

Consider using gzip to compress your .tar file:

tar -cf - [list of directories to backup] | gzip -1 > /windows_mount/backup_${HOST}_`date +'%Y%m%d%H%M%S'`.tar.gz


Cheers,

Stefan
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CPU monthly average? 12 130
How to Change Interface on Cisco IOU 11 110
Skill Development 15 182
Showing a username in UNIX and using that name in the script 4 48
Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

809 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