Script to copy User home folders to mounted windows share


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Script to copy User home folders to mounted windows share
# 8  
Old 03-30-2011
Some of the tools can discover hard and soft links and move them as such, or make copies, at your option: rsync, cpio pass mode link options and a similar option in newer cp's. Do not hide from the man pages!

Try running the following to see what changed. (\t should be a real tab, must use ksh on a machine with /dev/fd/ or bash)
Code:
comm -3 <(  
  cd /home
  find . | xargs -n99 ls -ld | sort
 ) <(
  cd /mnt/server
  find . | xargs -n99 ls -ld | sort
 ) | sed '
  s/^\t/mnt:  /
  t
  s/^/home: /
 ' >/tmp/copy_comm.txt
 
or:
 
diff <(  
  cd /home
  find . | sort | xargs -n99 ls -ld
 ) <(
  cd /mnt/server
  find . | sort | xargs -n99 ls -ld
 ) >/tmp/copy_diffs.txt

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Copy to Windows hidden share

Hi, I need to find a solution for backing up/transferring BACKUP (dump file) from AIX (specifically) to Windows 2012 Hidden Share. The vendor says that he cannot do a copy from his system to hidden share because it requires a password... Personally, I think that there should be a solution... (9 Replies)
Discussion started by: pob579
9 Replies

2. UNIX for Dummies Questions & Answers

Unable to write to a mounted NFS share

Hi All, I created a nfs share in the server(Solaris 10) with the following command and also updated the dfstab file share -F nfs -o rw=server_name2,anon=0 /to_share And then in the client(solaris 10) added the following command to mount the share mount -F nfs server_name1:/to_share... (4 Replies)
Discussion started by: Rossdba
4 Replies

3. Shell Programming and Scripting

ftp script to copy folders recursively

hi all I want a script that will use ftp to copy folder and sub folders from source server to current server. if i use -r switch then it just copies folders for 5 level. (1 Reply)
Discussion started by: kashif.live
1 Replies

4. AIX

I/O speed to CIFS mounted Windows Share

I have an AIX box that mounts a Windows share across subnets. When I try to copy a 100 MB file to it, it copies around 2 MB/s. If I copy to another Windows share on the same subnet it copies around 12 MB/s. All I have is gigabit networks so I would expect it to go well over 12 MB/s, which is the... (8 Replies)
Discussion started by: kah00na
8 Replies

5. UNIX for Dummies Questions & Answers

Mounting a standard user, windows share at login

I know how to mount my share via /etc/fstab automatically when the system boots but since I do not have root permission to access the /etc/fstab nor do I think that the system admin wants me to add an entry in /etc/fstab all together. So what file could I add my mount entry in? mount -t cifs... (8 Replies)
Discussion started by: metallica1973
8 Replies

6. HP-UX

user can't write on cifs share but OK with Windows Explorer

Share ServerA ==== The Samba server is running on Samba version 3.0.22 based HP CIFS Server A.02.03.04 /opt/cifsclient/sbin/cifsclientd version: HP CIFS Client - Version A.02.02.02 smb file: My previous casw was thew user wasn't able to write to the share from Windows... (1 Reply)
Discussion started by: lamoul
1 Replies

7. Windows & DOS: Issues & Discussions

Windows mass copy files with same name in differnt folders

I have files existing with same names in the folders with date as display below c:\2010-09-10 <==== folder arr1.jpg arr2.jpg arr3.jpg arr4.jpg c:\2010-09-09 <==== folder arr1.jpg arr2.jpg c:\2010-09-08 <==== folder arr2.jpg arr3.jpg arr4.jpg ... (5 Replies)
Discussion started by: jville
5 Replies

8. Shell Programming and Scripting

copy some files from users home folders to my folder

i have users home directories in /home all the users have some files starting with character e and i want to copy all these files in a folder in my (root) home using a script i tried the script for i in m5 do cd m5 cp e1* /home/pc/exam cd .. done but get these... (3 Replies)
Discussion started by: pcrana
3 Replies

9. Windows & DOS: Issues & Discussions

Copy folders and subfolders from unix to windows

Sir From a unix machine some folders and their folders have to be copied to windows XP PC. Please help me with a batch file or a shell script. I am new to the the shell and batch files. Thanks in anticipation. sastry (3 Replies)
Discussion started by: chssastry
3 Replies

10. Solaris

Copy Folders from Sun Solaris to Windows server.

Hi, I have a folder with diff subfolders in my Unix box and now I want to ftp all the floders into my Windows machine. Is there any easy way to do that. When I use the "mget " cmd and try to FTP the files, it throws an error that the sub folder name does not exist. Can you someone help in... (3 Replies)
Discussion started by: chandu_kalari
3 Replies
Login or Register to Ask a Question
XUnmapWindow(3X11)						     MIT X11R4							XUnmapWindow(3X11)

Name
       XUnmapWindow, XUnmapSubwindows - unmap windows

Syntax
       XUnmapWindow(display, w)
	  Display *display;
	  Window w;

       XUnmapSubwindows(display, w)
	  Display *display;
	  Window w;

Arguments
       display	 Specifies the connection to the X server.

       w	 Specifies the window.

Description
       The function unmaps the specified window and causes the X server to generate an event.  If the specified window is already unmapped, has no
       effect.	Normal exposure processing on formerly obscured windows is performed.  Any child window will no longer be visible until another
       map call is made on the parent.	In other words, the subwindows are still mapped but are not visible until the parent is mapped.  Unmapping
       a window will generate events on windows that were formerly obscured by it.

       can generate a error.

       The function unmaps all subwindows for the specified window in bottom-to-top stacking order.  It causes the X server to generate an event
       on each subwindow and events on formerly obscured windows.  Using this function is much more efficient than unmapping multiple windows one
       at a time because the server needs to perform much of the work only once, for all of the windows, rather than for each window.

       can generate a error.

Diagnostics
       A value for a Window argument does not name a defined Window.

See Also
       XChangeWindowAttributes(3X11), XConfigureWindow(3X11), XCreateWindow(3X11), XDestroyWindow(3X11), XMapWindow(3X11) XRaiseWindow(3X11)
       X Window System: The Complete Reference, Second Edition, Robert W. Scheifler and James Gettys

																XUnmapWindow(3X11)