Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

backup files from solaris to windows

Posted on 2004-03-23
2
Medium Priority
?
426 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
[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
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 1800 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.
Suggested Courses

650 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