Command incremental
backup
Ø tar –czv –g
/ទីតាំងយើងចង់ដាក់backup
file/ឈ្មោះfileថ្មី
-f /ទីតាំងយើងចង់ដាក់backup
fileដដែល/ឈ្មោះbackup file.tar.gz /អ្វីដែលយើងត្រូវbackup.
Ø tar
–czv –g /root/Desktop/vorn –f
/root/Desktop/davorn.tar.gz
/mnt/backup
Command extract backup file
Ø Tar –xvf backupfile’name -C
locationwewanttoputin
Command full backup
Ø Tar
–czf /mnt/mountpoint/backupfilename.tar.gz /whatwewanttobackup
Command rename file and folder
Ø mv oldfile’sname newfile’sname
Command full backup with date and time
Ø
tar –czf /mnt/mountpoint/vorn_with_date_time`date ’
+%F_%T`’.tar.gz /backup
To list data in file backup
Ø
tar –tf filebackupname
Command rpm
Ø Rpm
–ivh file’sname.rpm
Command tar
Ø
tar -xvf file’sname-2.2.tar.g.z.
Command rsync –r
Ø
rsync –r /root/da
/mnt/vorn
Ø backup
by rsync
Ø rsync -av /whattobackup
/tmp (location)
Command rsync –r
Back file from our pc to other pc
Back file from other to our pc
Ø
rsync -avz root@.192.168.3.1:/mnt
(what to backup) /root (location to store file)
Command ifup eth1 : to make eth1 to turn on
Command vim /etc/sysconfig/network/ifcfg-eth1
Ø
ifconfig eth0 up
Ø
ifconfig eth0 192.168.1.102 netmask 255.255.255.0
broadcast 192.168.1.255
No comments:
Post a Comment