Using Tar for Backups

Update file that already exists in tar archive
[root@james ~]# tar -uvf ./test.tar updatefile

Append file that doesnt not exist to archive.
[root@james ~]# tar -rvf ./test.tar newfilesfile

List files in backup.
jjest@canadark ~ $ tar -tvf downloads.tar
-rw-rw-r– jjest/jjest 2272130 2014-03-27 11:55 home/jjest/Downloads/cacti-0.8.8b.tar.gz

Extract file to destination dir.
jjest@canadark ~ $ tar -C /tmp -xvf downloads.tar

Extract one file from archive.
[root@james ~]# tar -xvf ./test.tar somefile


Working with 'Apt' in Ubuntu

Search for a package

apt-cache search <phrase>

Install a package

apt-get install <package>

Upgrade kernel

apt-get dist-upgrade

Using the 'touch' command

Create a new file using touch and modify its access time.

Set the date to Feb 1st, 2009 @ 730am.

[root@stone backups]# touch testfile2 -t 200902010730 testfile2

Verify settings..
[root@stone backups]# ls -la | grep testfile2
-rw-r–r–  1 root katze          0 Feb  1  2009 testfile2