background preloader


Facebook Twitter

6 rsync Examples to Exclude Multiple Files and Directories using exclude-from. Rsync is very powerful tool to take backups, or sync files and directories between two different locations (or servers).

6 rsync Examples to Exclude Multiple Files and Directories using exclude-from

You know this already, as we presented you with practical examples on rsync earlier. In a typical backup situation, you might want to exclude one or more files (or directories) from the backup. You might also want to exclude a specific file type from rsync. This article explains how to ignore multiple files and/or directories during rsync with examples. First, create a sample directory structure as shown below (with some empty files) that can be used for testing purpose. $ cd ~ $ mkdir -p source/dir1/dir2 $ mkdir -p source/dir3 $ touch source/file1.txt $ touch source/file2.txt $ touch source/dir1/dir2/file3.txt $ touch source/dir3/file4.txt The above command will create a source directory (under your home directory) with the following structure. source - file1.txt - file2.txt - dir1 - dir2 - file3.txt - dir3 - file4.txt 1. 2. 3. 4. 5. 6.

Wait. Linux and UNIX rsync command help and examples. About rsync rsync syntax rsync examples Related commands Linux and Unix main page About rsync Faster, flexible replacement for rcp.

Linux and UNIX rsync command help and examples

Description rsync is a fast and extraordinarily versatile file copying tool. It can copy locally, to/from another host over any remote shell, or to/from a remote rsync daemon. Rsync finds files that need to be transferred using a "quick check" algorithm (by default) that looks for files that have changed in size or in last-modified time. Some of the additional features of rsync are: Support for copying links, devices, owners, groups, and permissions Exclude and exclude-from options similar to GNU tar A CVS exclude mode for ignoring the same files that CVS would ignore Can use any transparent remote shell, including ssh or rsh Does not require super-user privileges Pipelining of file transfers to minimize latency costs Support for anonymous or authenticated rsync daemons (ideal for mirroring)

Rsync. For secure transfer, rsync can use SSH to encrypt data during the transfer using the "-e ssh" option.


From the man page: "For remote transfers, a modern rsync uses ssh for its communications, but it may have been configured to use a different remote shell by default, such as rsh or remsh. " Released under the GNU General Public License version 3, rsync is free software and is widely used.[6][7][8][9] History[edit] Andrew Tridgell and Paul Mackerras wrote the original rsync. Tridgell discusses the design, implementation and performance of rsync in chapters 3 through 5 of his Australian National University Ph.D. thesis.[10] rsync was first announced on 19 June 1996[1] and the first release of major version 3 was issued on 1 March 2008.[11] Sauvegarder ses données avec rsync. Si vous, ou un de vos agents, êtes capturé en mission, le département d’état nierait...

Sauvegarder ses données avec rsync

Heu non, ce n’est pas ça. Je recommence Ces manipulations ne sont pas triviales, vous les faites donc à vos risques et périls. Si ça plante prenez-vous en qu’à vous-même !! De suite ça met dans l’ambiance non ? ;) Ce que je veux dire par là c’est qu’il vous faut comprendre ce que vous faites avant de le réaliser, qu’il est recommandé de faire d’abord des tests avec des dossiers artificiellement créés pour l’occasion, avant de lancer la sauvegarde générale. Allez hop, c’est parti !! J’ai testé pas mal de solutions de sauvegardes avant de m’arrêter sur celle qui fait l’objet de ce tuto. Ce tuto détaillera donc toutes les étapes pour,au final, avoir une entrée dans le menu "Applications" sur laquelle il suffira de cliquer pour lancer sa sauvegarde. Avant de commencer voici quelques infos sur ce programme, en direct de Wikipédia : Backup - Rsync filter: copying one pattern only - Unix & Linux Stack Exchange.