Copy unix filesystem to windows


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Copy unix filesystem to windows
# 1  
Old 07-20-2009
Power Copy unix filesystem to windows

Hi all

Is there a way to copy a unix filesystem (folders, subfolder and files) to windows (AD) and at the same time maintaine the unix permission (user/group) when copied to windows (AD) filesystem?

I want the same permission in windows as I had in unix in one copy job.

Is this possible?

Thanks for all answers.

Best regards
-Tom
# 2  
Old 07-20-2009
Hi,
do you really need a copy of the filesystem or is access to the data sufficient?
If access is enough Samba may help you: share the folder and directly access it from your windows box.
# 3  
Old 07-20-2009
Ad hoc I don't know if there is a possibility, but you could try to check happens if you set up a samba server on the Unix box for example and copy stuff over to Windows filesystems. Or you can try to use NFS.
I doubt anything will stay the same though.
# 4  
Old 07-20-2009
Power

Hi.
Thanks for answers.
I have access to the file system from windows PC's, using Samba.
What I want is to move the entire filesystem to a windows filesystem maintaining the file permission in the windows file system.

Thanks.

-Tom
# 5  
Old 07-20-2009
you have acces to the filesystem... so what happens if you copy ALL the files? are there any problems?

have a look at the command "xcopy" from windows comman shell:

Code:
C:\>xcopy /?
Kopiert Dateien und Verzeichnisstrukturen.

XCOPY Quelle [Ziel] [/A | /M] [/D[:Datum]] [/P] [/S [/E]] [/V] [/W]
                    [/C] [/I] [/Q] [/F] [/L] [/G] [/H] [/R] [/T] [/U]
                    [/K] [/N] [/O] [/X] [/Y] [/-Y] [/Z]
                    [/EXCLUDE:Datei1[+Datei2][+Datei3]...]

  Quelle    Die zu kopierenden Dateien.
  Ziel      Position und/oder Name der neuen Dateien.
  /A        Kopiert nur Dateien mit gesetztem Archivattribut,
            ändert das Attribut nicht.
  /M        Kopiert nur Dateien mit gesetztem Archivattribut,
            setzt das Attribut nach dem Kopieren zurück.
  /D:M-T-J  Kopiert nur die an oder nach dem Datum geänderten Dateien.
            Ist kein Datum angegeben, werden nur Dateien kopiert,
            die neuer als die bestehenden Zieldateien sind.
  /EXCLUDE:Datei1[+Datei2][+Datei3]...
            Gibt eine Liste von Zeichenfolgen an. Jede Zeichenfolge
            sollte in einer einzelnen Zeile in der Datei angezeigt werden.
            Wenn eine der Zeichenfolgen Teil des absoluten Verzeichnispfads
            der zu kopierenden Datei ist, wird diese Datei vom
            Kopiervorgang ausgeschlossen. Beispiel: Bei der
            Zeichenfolge \obj\ oder .obj werden alle Dateien
            unterhalb des Verzeichnisses OBJ bzw. alle Dateien mit
            der Erweiterung .obj vom Kopiervorgang ausgeschlossen.
  /P        Fordert vor dem Erstellen jeder Zieldatei eine Bestätigung.
  /S        Kopiert Verzeichnisse und Unterverzeichnisse, die nicht leer sind.
  /E        Kopiert alle Unterverzeichnisse (leer oder nicht leer).
            Wie /S /E. Mit dieser Option kann die Option /T geändert werden.
  /V        Überprüft jede neue Datei auf Korrektheit.
  /W        Fordert vor dem Beginn des Kopierens zu einem Tastendruck auf.
  /C        Setzt das Kopieren fort, auch wenn Fehler auftreten.
  /I        Falls Ziel nicht vorhanden ist und mehrere Dateien kopiert
            werden, nimmt XCOPY an, dass das Ziel ein Verzeichnis ist.
  /Q        Zeigt beim Kopieren keine Dateinamen an.
  /F        Zeigt die Namen der Quell- und Zieldateien beim Kopieren an.
  /L        Listet die Dateien auf, die ggf. kopiert werden.
  /G        Ermöglicht das Kopieren von verschlüsselten Dateien auf ein
            Ziel wo Verschlüsselung nicht unterstützt wird.
  /H        Kopiert auch Dateien mit den Attributen 'Versteckt' und 'System'.
  /R        Überschreibt schreibgeschützte Dateien.
  /T        Erstellt die Verzeichnisstruktur, kopiert aber keine Dateien.
            Leere oder Unterverzeichnisse werden nicht kopiert. Um auch diese
            zu kopieren, müssen Sie die Optionen /T /E angeben.
  /U        Kopiert nur Dateien, die im Zielverzeichnis vorhanden sind.
  /K        Kopiert Attribute. Standardmäßig wird 'Schreibgeschützt' gelöscht.
  /N        Beim Kopieren werden die erzeugten Kurznamen verwendet.
  /O        Kopiert Informationen über den Besitzer und ACL.
  /X        Kopiert Dateiüberwachungseinstellungen (bedingt /O).
  /Y        Unterdrückt die Aufforderung zur Bestätigung, dass eine
            vorhandene Zieldatei überschrieben werden soll.
  /-Y       Fordert zur Bestätigung auf, dass eine bestehende
            Zieldatei überschrieben werden soll.
  /Z        Kopiert Dateien in einem Modus, der einen Neustart ermöglicht.

Die Option /Y kann in der Umgebungsvariable COPYCMD vordefiniert sein.
Sie kann mit /-Y in der Befehlszeile deaktiviert werden.

my language is german in windows, so you might need to run "xcopy /?" on your system if you're not into german Smilie
# 6  
Old 07-20-2009
Power

Hi.
I think the problem will be that the unix permission and the windows permission dont understand each other.

IE. the permission in windows has to know about the same permission as i unix. Som translation or something between the system?

If I copy a file from unix to windows on a PC (with windows/AD), it wont keep the same permission (user/group) in the windows filesystem because it dont recognize the same user/group permissions.

How to translate permission between systems (Unix - Windows/AD) and copy them at the same time. Possible?

-Tom
# 7  
Old 07-20-2009
this will only work if your unix machine is in your AD (with samba). otherwise i don't see a chance to do this...
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

UNIX command to copy files from Windows to UNIX box

Hi Folks, I have a file name abc.xml in my windows machine at the location c:\ytr\abc.xml which I want to place at the unix box machine inside cde directory.. at the following location that is /opt/app/cde/ now the credentials of unix box are abc345 -->(dummyid) ftyiu88--->(dummy passwd) ... (4 Replies)
Discussion started by: punpun66
4 Replies

2. Shell Programming and Scripting

Unix shell script to Copy files from one Windows server to another Windows server.

Can anybody please help me on how to code for the below requirement: I need to write a shell script (on different unix server) to copy files from multiple folders (ex. BRN-000001) from one windows server (\\boldls-mwe-dev4)to a different windows server(\\rrwin-ewhd04.ecomad.int). This shell... (4 Replies)
Discussion started by: SravsJaya
4 Replies

3. UNIX for Dummies Questions & Answers

copy paste to windows from unix

I generally highlight the content in unix terminal and use ctrl+v to paste in windows and it was working. Recently I noticed that if I copy in unix and paste in windows, it works once and then it does not work the second time. Then if I do a ctrl+c in a windows app to select a text and then go back... (3 Replies)
Discussion started by: carv_13
3 Replies

4. Shell Programming and Scripting

Copy from vi Editor ( unix ) to windows

How to copy the complete content from a file in vi Editor to windows ( notepad ). I can use " select " and paste it to windows but this is restricted to current page. Not allowing me to scroll down or up when selecting the content.:confused: (1 Reply)
Discussion started by: frintocf
1 Replies

5. UNIX for Dummies Questions & Answers

Copy file from Windows to Unix

I have a file in windows that I need to copy to UNIX. How can I FTP binary to the UNIX server. Thanks (2 Replies)
Discussion started by: abou202
2 Replies

6. UNIX for Advanced & Expert Users

Copy Paste across UNIX and Windows ?

how to select all the text from a file in Unix and then paste it in Notepad in windows? (4 Replies)
Discussion started by: skyineyes
4 Replies

7. UNIX for Dummies Questions & Answers

Copy from Windows to Unix

How do i copy a jar file from Windows to Unix?I am using eTrust single sign on tool to connect to the unix server. (1 Reply)
Discussion started by: ghanshyam
1 Replies

8. UNIX for Dummies Questions & Answers

How to format a floppy in unix filesystem from windows

Hi, we have a strange problem. We have to format any floppy disk HD in unix filesystem mode (SCO) but we haven't unix workstations. Are there any software to make this formatting from windows xp pc ? Regards Gianpaolo (1 Reply)
Discussion started by: elektra
1 Replies

9. UNIX for Dummies Questions & Answers

copy and paste from MS Windows to Unix

Where I work we run unix through Microsoft windows, so my unix Windows appear on my MS Windows desktop. I surf the net with Microsoft Internet Explorer, is there anyway I can copy and paste examples from the net into my Unix windows? Thank you (9 Replies)
Discussion started by: Loaded Gun
9 Replies

10. UNIX for Advanced & Expert Users

copy data from Windows to Unix any help?

I have a log file that I would like to copy from my windows pc to my unix pc for further processuon. Is there any command that can help me perform this task?. I already have a cron to fire up the process, but nothing seems to be coming up. I am trying to use ftp but nothing is coming forth.... (8 Replies)
Discussion started by: odogbolu98
8 Replies
Login or Register to Ask a Question