Tar file from Linux server to PC for backup


 
Thread Tools Search this Thread
Special Forums Hardware Filesystems, Disks and Memory Tar file from Linux server to PC for backup
# 1  
Old 01-16-2007
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.
# 2  
Old 01-17-2007
something like that ? :
Code:
#!/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 :) "

# 3  
Old 01-17-2007
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?
# 4  
Old 01-17-2007
Quote:
Originally Posted by zp523444
Can I map the XP's drive in Linux server than tar to the XP's drive?
man smbmount Smilie

clue: smbmount //<winhost>/<resource> /path/to/mountpoint -o username=<winuser>,workgroup=<domain>
# 5  
Old 01-17-2007
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.
# 6  
Old 01-18-2007
Quote:
Originally Posted by Corona688
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. Smilie
# 7  
Old 01-18-2007
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Backup of Red Hat Linux 5.9 Tikanga based server through Acronis 11.5

Hii, We are running a server with Red Hat Linux 5.9 tikanga version. We have scheduled the online image backup of the server through Acronis 11.5, the CPU utilization of the server is increasing upto 100%. and after sometime the server is going down. Can anyone help on the same?? (2 Replies)
Discussion started by: Vivek Kr Porwal
2 Replies

2. Debian

Tar backup of debian server

Am reading this doc Full Hard-Drive Backup with Linux Tar on backup. why do we need the dot at the end ? tar -cvpf /backups/fullbackup.tar --directory=/ --exclude=proc --exclude=sys --exclude=dev/pts --exclude=backups . (7 Replies)
Discussion started by: coolatt
7 Replies

3. UNIX for Dummies Questions & Answers

UNIX Tar file backup

I want to create a tar file that backup all my recent work. I have no idea how Tar file works and I am new to Unix Please help (1 Reply)
Discussion started by: GGBEASTBOI
1 Replies

4. Linux

How to backup a Linux server?

Dear All Can you please let me know how to backup my Linux server for preserving data in case if hard disk crashes? Thank you (1 Reply)
Discussion started by: hadimotamedi
1 Replies

5. Shell Programming and Scripting

File Backup - TAR help

Hi, Another rookie here. I have a script I am developing to backup files from various directories onto a windows machine. Script description: - mv files from various directories - tar all files in that directory - export to windows server for safe keeping, external backups. The... (5 Replies)
Discussion started by: mcclunyboy
5 Replies

6. SCO

copy crontab file from backup server

Hi, I did a terrible mistake of issuing crontab -r command which deleted my table on a new installation. Is there any way i can transfer the table from an existing unix box. Regards, Joseph:confused: (4 Replies)
Discussion started by: njoroge
4 Replies

7. AIX

how to take tar backup of the contents of a file

Hi I have a file named files.2.backup which holds the location of some directory and file i,e $ cat files.2.backup /d01/app/oracle/product/7.3.2/dbs/fortest_syst_01.dbf /d01/app/oracle/product/7.3.2/dbs/fortest_temp_01.dbf /d01/app/oracle/product/7.3.2/dbs/fortestdata_01.dbf... (5 Replies)
Discussion started by: sumanbangladesh
5 Replies

8. Filesystems, Disks and Memory

Backup apps for Windows server, linux clients?

Hi guys. What would you recommend me a software running on Windows, and it is capable for backing up Windows and Linux (unix is optional) machines? The application should have following features: - Encryption. - Authentication - Open source if possible :) ... I found Amanda, but it... (1 Reply)
Discussion started by: bsddaemon
1 Replies

9. UNIX for Dummies Questions & Answers

tar -cvf test.tar `find . -mtime -1 -type f` only tar 1 file

Hi all, 4 files are returned when i issue 'find . -mtime -1 -type f -ls'. ./ora_475244.aud ./ora_671958.aud ./ora_934052.aud ./ora_934050.aud However, when I issued the below command: tar -cvf test.tar `find . -mtime -1 -type f`, the tar file only contains the 1st file -... (2 Replies)
Discussion started by: ahSher
2 Replies

10. Shell Programming and Scripting

How to exclude file in tar backup?

I am taking a backup of area with the following command:- tar -cf -./* |/usr/contrin/bin/gzip >xxx.tar.gz. The area contains following files :- xxxx yyyy zzzzz asdaD DASdD WQWEE I want to backup all the files except yyyy from the following area. I checked manual page of tar but I... (2 Replies)
Discussion started by: kamlesh_p
2 Replies
Login or Register to Ask a Question