How to Archiving in Centos

Compressing with Tar

Tar files place several files or the contents of a directory or directories in one file. This is a good way to create backups and archives. Usually, tar files end with the .tar extension.

To create a tar file, type:

tar -cvf filename.tar files/directories

In this example, filename.tar represents the file you are creating and files/directories represents the files or directories you want to put in the new file.

You can use absolute or relative pathnames for these files and directories (for more on pathnames. Separate the names of files and directories with a space.

The following input would create a tar file using absolute pathnames:

	 tar -cvf foo.tar /home/mine/work /home/mine/school

The above command would place all the files in the /work subdirectory and the /school subdirectory in a new file called foo.tar in the current working directory.

The command tar -cvf foo.tar file1.txt file2.txt file3.txt would place file1.txt, file2.txt and file3.txt in a new file called foo.tar.

To list the contents of a tar file, type:

	tar -tvf foo.tar

To extract the contents of a tar file, type:

tar -xvf foo.tar

This command does not remove the .tar file, but it places copies of the .tar contents in the current working directory.

The tar command does not compress files automatically. You can compress tar files with:

tar -czvf foo.tar

Compressed tar files are conventionally given the extension .tgz and are compressed with gzip.

To expand a compressed tar file type:

tar -xzvf foo.tgz

Compressing with Gzip and Zip

Gzip
Type the following command to compress a file at a shell prompt
gzip filename.ext -> The file will be compressed and saved as filename.ext.gz

Type the following command to expand a compressed file
gunzip filename.ext.gz -> The filename.ext.gz is deleted and replaced with filename.ext

Type the following command to compress multiple files at a shell prompt
gzip filename.gz file1 file2 file3 -> will compress file1, file2, file3 and put them in filename.gzip.

Zip
Type the following command to compress a file at a shell prompt

zip -r filename.zip files

filename represents the file you are creating and files represents the files you want to put in the new file

Type the following command to expand a compressed file

unzip filename.zip

Type the following command to compress multiple files at a shell prompt

zip filename.zip file1 file2 file3

will compress file1, file2, file3 and put them in filename.zip

If you add directory to multiple files

zip filename.zip file1 file2 file3 /user/work/school

will compress file1, file2, file3, the contents of the /user/work/school directory and put them in filename.zip

How To Tar.gz

If you are in the same directory as where your files / folders are placed, then you dont have to specify the file location. i.e. /usr/home/bleh/bleh
This is how to make a .tar.gz from a Folder

tar czf /path/to/output/folder/filename.tar.gz /path/to/folder

i.e if you are in /path/to/output/ and you want to put the file in /path/to/output/ you can use the following command.

tar czf filename.tar.gz folder

This is how to extract a .tar.gz file

gunzip -c /path/to/folder/filename.tar.gz

or like i do…

tar -zxvf /path/to/folder/filename.tar.gz

i.e if you are in /path/to/folder/ You can do the following…

tar -zxvf filename.tar.gz

View a list of all files in a .tar.gz archive

gunzip -c /path/to/folder/filename.tar.gz | tar -tvf -

i.e if you are in /path/to/folder/ You can do the following…

gunzip -c filename.tar.gz | tar -tvf -

Extract a single file from a .tar.gz file

gunzip -c /path/to/folder/filename.tar.gz | tar -xvf - path/within/archive/filename.php

i.e if you are in /path/to/folder/ You can do the following…

gunzip -c filename.tar.gz | tar -xvf - path/within/archive/filename.php

You can also add a date stamp to the tarball by using the following example below…

tar -czf public_html-`date +%d%m%y`.tar.gz public_html

Belajar Cara Mengembalikan File yang Terhapus

cara belajarBagi Yang Baru belajar / cara belajar Komputer, pastinya Pernah menghapus file-file penting di komputer tanpa disengaja? Kasus seperti ini mungkin pernah menimpa  Anda, terkadang terjadi karena kita tengah terburu-buru atau dikejar waktu.

Namun jangan khawatir, Anda bisa menggunakan tools khusus untuk mengembalikan file-file tadi, kali aja ada file penting, misal: cara belajar cari cewek, hehehe… Berikut ini ada  4 tools yang bisa Anda gunakan untuk mengembalikan file yang terhapus. Tools ini dapat di-download secara gratis di internet.

1. Undelete Plus
Di antara aplikasi-aplikasi gratis yang beredar di luaran untuk mengembalikan file yang terhapus, Undelete Plus salah satu yang dapat digunakan. User interface-nya (antar muda) tergolong sangat simpel. Anda dapat mengembalikan file-file yang terhapus dengan mudah sesuai dengan tipe file, misalnya Application, GIF graphics, HTML  Documents, PDF.

Tools ini beroperasi pada sistem operasi Windows 95, Windows 98, Windows Me, Windows NT, Windows 2000, Windows XP, Windows 2003 dan Windows Vista. Anda dapat men-download Undelete Plus di: http://www.undelete-plus.com/

2. Restoration
Restoration adalah salah satu aplikasi untuk mengembalikan file yang terhapus. Tools ini juga sangat mudah digunakan dan tidak perlu diinstal di komputer. Cukup download toolsnya di: http://www.snapfiles.com/get/restoration.html, lalu jalankan file executable-nya untuk mengembalikan file yang terhapus.

3. PC Inspector File Recovery
Meski user interface PC inspector File Recovery tidak begitu user friendly, aplikasi ini tergolong sangat ampuh untuk mendeteksi dan mengembalikan file yang terhapus. Sesudah dilakukan proses scanning, akan tersaji file-file yang terhapus dalam folder dengan struktur pohon (tree structure) untuk mempermudah  pencarian. Dengan begitu, Anda dengan mudah dapat mencari dan memilih file/folder yang terhapus, lalu klik icon “save” untuk mengembalikan file. Tools ini dapat di-download di:   http://www.pcinspector.de/Sites/file_recovery/info.htm?language=1

4. Recuva
Recuva sering disebut juga sebagai “Recover”. User interface-nya sangat sederhana. Pada mode basic, tools ini akan menampilkan daftar file-file yang terhapus yang bisa dikembalikan. Jika Anda menggantinya ke mode advanced, maka proses scanning ulang akan dilakukan dan muncul pilihan untuk menampilkan informasi berisi daftar file-file yang terhapus. Tools ini dapat di-download di: http://www.recuva.com/

Semoga bermanfaat, dan tetap semangat ya belajar nya

Sumber Informasi:
Detik Inet

Update Antivirus Per 8 September

Norton Antivirus 2003-2007 Definition Update (September 08, 2007) Download
Norton Antivirus 2008 Definition Update (September 08, 2007) Download
McAfee VirusScan DAT file v5115 Download
McAfee VirusScan SuperDAT File v5115 Download
Kaspersky Anti-Virus Monthly Update (August 02, 2007) Download
Kaspersky Anti-Virus Weekly Update (August 02, 2007) Download

Antivirus Lokal

ANSAV Download
Update ANSAV Download

Update Database Antivirus Per 3 September

McAfee VirusScan DAT file v5110 Download

McAfee VirusScan SuperDAT File v5110 Download
Norton Antivirus 2003-2007 Definition Update (August 31, 2007) Download
Norton Antivirus 2008 Definition Update (August 31, 2007) Download
Kaspersky Anti-Virus Monthly Update (August 26, 2007) Download


Antivirus Lokal

ANSAV Dari Ansav.com Download

Update Database Antivirus Per 28 Agustus

McAfee VirusScan DAT file v5107 Download
McAfee VirusScan SuperDAT File v5107 Download
Norton Antivirus 2003-2007 Definition Update (August 28, 2007) Download
Norton Antivirus 2008 Definition Update (August 28, 2007) Download
Kaspersky Anti-Virus Monthly Update (August 26, 2007) Download

Antivirus Lokal

ANSAV Dari Ansav.com        Download

Update Database Antivirus Per 19 Agustus

McAfee VirusScan DAT file v5102 Download

McAfee VirusScan SuperDAT File v5102 Download

Norton Antivirus 2003-2007 Definition Update (August 21, 2007) Download

Kaspersky Anti-Virus Monthly Update (August 19, 2007) Download

Kaspersky Anti-Virus Weekly Update (August 19, 2007) Download

Tips menghapus virus yang tidak bisa ditangani Anti virus

Ada tips yang sangat ampuh untuk menghapus virus, jika berbagai Anti Virus yang kita gunakan sama sekali tidak berdaya melawannya ( mungkin hanya bisa mendeteksi, namun tidak bisa menghapusnya). Untuk melakukan ini diperlukan Bootable CD yang berisi minimal program File Manager, misalnya Ultimate Boot CD, BartPE dan sejenisnya. Beberapa program ada yang berbasis DOS dan sebagian lain sudah berbasis window. Atau bisa juga digunakan Linux Live CD, seperti Knoppix, UBuntu Live CD dan lainnya. Secara Umum, langkahnya sebagai berikut :
Cari lokasi virus, terutama asal virus ini berjalan di komputer (induknya). Jika mengalami kesulitan, bisa dibaca artikel tentang Tips mendeteksi keberadaan Virus
Setelah diperoleh, diperhatikan ( catat) keterangan seperti ukuran file, tanggalnya ( walaupun virus bisa berubah-ubah ukuran dan tanggalnya, tetapi sebagian ukuran dan tanggalnya selalu sama. Bisa dicari file yang sejenis dan dicatat lokasinya.
Setelah didapat, gunakan salah satu Bootable CD dan restart komputer agar booting dari CD ( Anda mungkin perlu menyetting BIOS-nya dulu agar Boot pertama kali CD/DVD-ROM).
Buka program file manager, yang tersedia. Jika windowsnya NT, XP atau diatasnya, pastikan program tersebut mendukung membaca format NTFS
Cari file/ virus dan hapus atau jika masih ragu, direname saja dari *.exe menjadi *.vrs misalnya. Untuk menyakinkan, gunakan fasilitas search untuk mencari file dengan ukuran yang sama atau tanggal yang hampir sama. Jika ditemukan bisa direname
Kembali restart komputer dan cek lagi

Referensi / Download :
BartPE
Ultimate Boot CD

Dari http://ebsoft.web.id