Deduplicação com fdupes

Para deduplicar um servidor de arquivos com o fdupes:

  1. Levante os arquivos duplicados; por exemplo:
    [root@alv_intranet ~]# ls -la /root/download/
    total 38216
    drwxr-xr-x  2 root root     4096 Fev 26 13:19 .
    dr-xr-x---. 7 root root     4096 Fev 25 21:47 ..
    -rw-r--r--  1 root root    23992 Fev 26 13:18 dup1.rpm
    -rw-r--r--  1 root root    23992 Fev 26 13:19 dup2.rpm
    -rw-r--r--  1 root root    23992 Fev 25 17:36 fdupes-1.51-6.el6.x86_64.rpm
    -rw-r--r--  1 root root 39025861 Fev 11  2014 samba4-4.1.4-1.el6.1.x86_64.rpm
    -rw-r--r--  1 root root    23986 Fev 17  2014 smb.conf
    [root@alv_intranet ~]# fdupes -r /root/download/
    /root/download/fdupes-1.51-6.el6.x86_64.rpm
    /root/download/dup1.rpm
    /root/download/dup2.rpm
  2. Deduplique-os; p.ex.:
    [root@alv_intranet ~]# fdupes -r -d /root/download/
    [1] /root/download/fdupes-1.51-6.el6.x86_64.rpm
    [2] /root/download/dup1.rpm
    [3] /root/download/dup2.rpm
    
    Set 1 of 1, preserve files [1 - 3, all]: 1
    
       [+] /root/download/fdupes-1.51-6.el6.x86_64.rpm
       [-] /root/download/dup1.rpm
       [-] /root/download/dup2.rpm
    
    [root@alv_intranet ~]# ls -la /root/download/
    total 38168
    drwxr-xr-x  2 root root     4096 Fev 26 13:30 .
    dr-xr-x---. 7 root root     4096 Fev 25 21:47 ..
    -rw-r--r--  1 root root    23992 Fev 25 17:36 fdupes-1.51-6.el6.x86_64.rpm
    -rw-r--r--  1 root root 39025861 Fev 11  2014 samba4-4.1.4-1.el6.1.x86_64.rpm
    -rw-r--r--  1 root root    23986 Fev 17  2014 smb.conf
IP
3.229.142.91