Warning: Creating default object from empty value in /home/mirandam/public_html/linux/wp-includes/functions.php on line 292
Fedora, Linux and Stuff :: Archive dotfiles and dotdirectories only

Archive dotfiles and dotdirectories only

Saturday, May 24th, 2008 ~ 1:59 pm by Mauriat Miranda

Sometimes I would find the need to archive just .files and .directories (e.g. .mozilla, .gnome). Unfortunately I would always manually do it.

Quick tip:

# ls -A | egrep '^\.' | tar -cvf filename.tar -T -

(Thanks to LQ)

Comments are closed.