You See Our Blogs!
See & Xplorer Our Blogs!

Tong hilap 2

# add user sistem
adduser –system –shell /bin/false –home /dev/null [user]

# inncremental menggunakan rsync
1. login radmin
2. gunakan sudo -i
3. ketik cd /data
4. ini merupakan contoh perintah untuk membackup incremental
rsync -avz –backup –backup-dir=`date +%Y.%m.%d` -a AnC/ /data/BCKUP/AnC/
rsync -avz –backup –backup-dir=`date +%Y.%m.%d` -a ECC/ /data/BCKUP/ECC/
rsync -avz –backup –backup-dir=`date +%Y.%m.%d` -a SPR/ /data/BCKUP/SPR/

note :  – a = arsip
- v = untuk melihat proses backup
- z = file/folder dikompress pada saat sesi transfer

# membuat login baru
1. adduser –system –shell /bin/false –home /dev/null [user]
2. smbpasswd -a [user]
3. vim /etc/group       : masukkan [user] ke dalam grouping pada tiap group
4. edquota -p [user eksis] -u [user]

# siknronisasi data

rsync -av -P /path-asal /path-tujuan/
***note : pada /path-asal jangan sampai menggunakan tanda / lagi dibelakang path contoh /path-asal/ <—- NO!

# mounting samba
mount -t smbfs -o username=root,password=xxxx //192.168.0.3/data/ /mnt/pdc/

# mounting hd eksternal
mount -t ntfs-3g /dev/sdb1 /mnt/ntfs/

# other sample backup rdiff-backup exclude
rdiff-backup –exclude *.mp3 –exclude *.avi

# other sample backup rsync exclude
rsync –exclude “*.bkf”i

# untuk mencari plus delete
find NAS-BACKUP/ -name *exe -exec rm -rf {} \; <=== sample

# cek kapasitas ukuran file/direktori
du -sh /nas/DATA-BARU <=== sample

 

Cyd!

Advertisement

No Responses to “Tong hilap 2”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.