somethingx Posted March 24, 2005 Report Share Posted March 24, 2005 I have (or will have soon) one PC with Windows XP and another PC with Linux. They are connected to a router. I want to backup files from the first PC on the second PC and vice versa. I am not going to use these files (hopefully), just store them. Do I need to use Samba for this or is there another way? Quote Link to comment Share on other sites More sharing options...
Qchem Posted March 24, 2005 Report Share Posted March 24, 2005 Samba or unison are what you should be looking at. Quote Link to comment Share on other sites More sharing options...
polemicz Posted March 24, 2005 Report Share Posted March 24, 2005 I do it myself all the time, having an old Win 2000 machine. Just set up Samba and your workgroup and you are in business. Plenty of posts here and elsewhere on setting up samba. Quote Link to comment Share on other sites More sharing options...
somethingx Posted April 4, 2005 Author Report Share Posted April 4, 2005 If I copy a file from linux to windows using Samba, its attributes will be lost, am I right ? Quote Link to comment Share on other sites More sharing options...
adamw Posted April 4, 2005 Report Share Posted April 4, 2005 Yes, so what you should do is tar the files (and gzip or bzip them to save space). When you extract the archive again on a Linux machine the permissions etc will be restored. Quote Link to comment Share on other sites More sharing options...
Guest dianat100 Posted May 4, 2005 Report Share Posted May 4, 2005 Yes, so what you should do is tar the files (and gzip or bzip them to save space). When you extract the archive again on a Linux machine the permissions etc will be restored. Newbie asks: How do I actually tar the files I want to back up (and then gzip or bzip them to save space)? Thanks. Quote Link to comment Share on other sites More sharing options...
streeter Posted May 4, 2005 Report Share Posted May 4, 2005 (edited) Here's what I use for general backups: I have a file called backup.list containing a list of the folders to back up, one per line, e.g. /home/chris /root /etc Another called exclude_from_backup.list containing a list of subfolders and files to exclude, e.g. /home/chris/backup/* /home/chris/downloads/* /home/chris/temp/* /home/chris/.kde/share/fonts/* /home/chris/.kde/share/cache/* *~* core* This is some of it - you will want to add more... Then a file called backup.sh containing the tar command: #!/bin/sh tar -cvzV `date +%Y_%m_%d_%H:%M:%S` -f backup.tar.gz --files-from=/home/chris/backup/backup.list -X/home/chris/backup/excludefrombackup.list This needs to be executeable, so chmod 775 /home/chris/backup/backup.sh I get an error message when the backup finishes, but it seems to work OK - must look at it closer sometime... All stored in /home/chris/backup/ Run as root (so you can back up any file) by typing /home/chris/backup/backup.sh and it should write a nice big backup.tar.gz file to /home/chris/backup/ which I then copy to another PC or CD. Works for me... Chris Edited May 5, 2005 by streeter Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.