Copying a directory tree and its contents to another filesystem using tar will preserve ownership, permissions, and timestamps.   If you want recursively copy directory tree use next command:   tar cf - * | ( cd /target; tar xfp -)   The first part of the command before the pipe instruct tar to create an archive of everything in the current directory and write it to standard output (the – in place of a filename frequently indicates stdout). The commands within parentheses cause the shell to change directory to the target directory and untar data from standard input. Since the cd and tar commands are contained within parentheses, their actions are p...
Published ago by ochirkov

Bash is quite useful for work with it from shell because of he has a couple methods which allow you do things easy and fast. Redirection is most useful thing. You use it everytime when work with shell. Shell allows you redirect output and errors to places which you want, run command with file like stdin  and so on... Let's try a few examples:   1. Execute ls command in ordinary mode. Stdout will your shell:  root@ansible:~# ls -l total 2036 -rw-r--r-- 1 root root 107 Feb 4 16:10 1 drwxrwxrwx 6 dpi dpi 4096 Nov 24 17:11 ansible -rw-rw-r-- 1 dpi dpi 25 Jan 9 18:28 bla drwxrwxr-x 3 dpi dpi 4096 Feb 14 11:42 bre -rw-rw-r-- 1 ...

Python
Web development
Review Linux
Administration
Provisioning CVS
Windows AWS
Continuous Integration
NoSql Logging Web Servers FileSystems Scala
accurev ansible apach2 apache api application approaches architecture archivation argparse arguments artifactory automation awk aws backup bash batch-scripting beaver block build built-in caching call captcha cartridge case certificates cgi chain client cloud cloudformation cluster cmd coding collections command-line commands compression conditionals conversion convert cookbook copy counter cron crud css cut cygwin daemon datatype date dd debpackage decorator delattr deploy deque dict distributed-file-systems django DNS domain driver dropbox dump elasticcache elasticsearch encryption exit ext4 extra-tags failover file filename filters for form format freetds functions gerrit getattribute gid git globals glusterfs hardware hook iam indexing inheritance init install job-interview jquery ldap linux list locals logging logs logstash lookup magicmethods mail main-menu metadata metalogger mongodb moosefs mount mssql multiplatform multithreading mysql netcat nginx nosql open-ssh openldap openshift os packaging parse partition path pattern patterns permissions pid pil pip pipe playbook pool post post-commit processes production provisioning proxy putty python python-mysql recursively redirection redis register replication repr restore return review rotation scala script search selenium server setattr settings setup shipper signals singleton slots snapshot socket splunk ssh ssh-key ssl storage str string style subprocess sugar super switch syntactic syntaxhighlighter systeminfo tail tar templatetags time tls tune2fs tuple ubuntu unicode unique unix unixodbc usage usecases uuid uwsgi variable vars version vi virtualenv volume web web-server windows with_items __getattr__