hidden files
create an archive using tar (including hidden files)
taken from Digitesters
Normally:
tar czf backup.tar.gz /backup/*
This way all files are tarred except the hidden files.
Solution: replace the asterisk (*) by a dot (.)
tar czf backup.tar.gz /backup/.
copy files (including hidden files)
taken form superuser.com
Solution again use a dot (.) instead of an asterisk (*)
cp -r /backup/. /data