Tar file from Linux server to PC for backup

I have a Linux email server, I want to backup all /home /var... by tar command and copy to my PC for backup everyweek. The Linux serve rhave ftp function.

Is there any program to help backup my file? any url welcome

many thank.

something like that ? :

#!/bin/bash
#Backup Script Instance
echo "A system backup is currently being performed..."
mkdir /backup
cd /backup
#Tar files for this backup
rm fullback.tar.gz
tar cvf fullback.tar /home/user/
#Create the tar file
gzip -f fullback.tar
#FTP the file to the backup directory on the backup server
ftp -in <<EOF
open FTPhost
user your-user-name your-password
bin
hash
prompt
dele fullback.tar.gz
put fullback.tar.gz
bye
echo "The current backup was FTP'ed to the backup server. You may check the  status..."
echo "Visit http://unix.com :) "

thank for the script.

However, all the volume is almost full and can't hold the big tar file.
Can I map the XP's drive in Linux server than tar to the XP's drive?
or can I find a program that run in XP and tar the file in Linux ?
any WinTar program?

man smbmount :slight_smile:

clue: smbmount //<winhost>/<resource> /path/to/mountpoint -o username=<winuser>,workgroup=<domain>

You need to have Samba installed for the above command to work. Samba's the de-facto standard for exporting and importing windows file shares in UNIX.

I forgot to mention it, thanks Corona688. I just assumed it was already intalled, as it is on my PC. :slight_smile:

I am using Fedora Core release 5 (Bordeaux) Kernel 2.6.18-1.2239.fc5 on an i686, I can find /etc/samba/smb.conf but can't 'smbmount'
Please kindly tell me where can I find or download,install to my Linux server.

smbmount is part of the Samba software suite, have you tried installing/upgrading that?

how can I install thw Samba software suite?
thk