#!/bin/bash cd /home/zago mkdir /home/zago/atusite cd /home/zago/guiaz #apaga todos .txt~ (temporarios) find /home/zago/guiaz/ -name "*.txt~" -exec rm {} \; # gambi até descobrir como copiar os ultimos 3 dias # varias tentativas seguindo o manual não deu certo, assim funciona!!! find -maxdepth 1 -mtime 0 -exec cp {} /home/zago/atusite \; cd /home/zago/guiaz/samba mkdir /home/zago/atusite/samba find -maxdepth 1 -mtime 0 -exec cp {} /home/zago/atusite/samba \; cd /home/zago/guiaz/modem mkdir /home/zago/atusite/modem find -maxdepth 1 -mtime 0 -exec cp {} /home/zago/atusite/modem \; cd /home/zago/guiaz/modelos mkdir /home/zago/atusite/modelos find -maxdepth 1 -mtime 0 -exec cp {} /home/zago/atusite/modelos \; cd /home/zago/guiaz/squid mkdir /home/zago/atusite/squid find -maxdepth 1 -mtime 0 -exec cp {} /home/zago/atusite/squid \; cd /home/zago/guiaz/squid/acl mkdir /home/zago/atusite/squid/acl find -maxdepth 1 -mtime 0 -exec cp {} /home/zago/atusite/squid/acl \; cd /home/zago/guiaz/linguag mkdir /home/zago/atusite/linguag find -maxdepth 1 -mtime 0 -exec cp {} /home/zago/atusite/linguag \; cd /home/zago/guiaz/email mkdir /home/zago/atusite/email find -maxdepth 1 -mtime 0 -exec cp {} /home/zago/atusite/email \; cd /home/zago/guiaz/firewall mkdir /home/zago/atusite/firewall find -maxdepth 1 -mtime 0 -exec cp {} /home/zago/atusite/firewall \; cd /home/zago/guiaz/scripts mkdir /home/zago/atusite/scripts find -maxdepth 1 -mtime 0 -exec cp {} /home/zago/atusite/scripts \; cd /home/zago/guiaz/kde mkdir /home/zago/atusite/kde find -maxdepth 1 -mtime 0 -exec cp {} /home/zago/atusite/kde \; cd /home/zago/guiaz/hard mkdir /home/zago/atusite/hard find -maxdepth 1 -mtime 0 -exec cp {} /home/zago/atusite/hard \; cd /home/zago/guiaz/ssh mkdir /home/zago/atusite/ssh find -maxdepth 1 -mtime 0 -exec cp {} /home/zago/atusite/ssh \; cd /home/zago/guiaz/kmail mkdir /home/zago/atusite/kmail find -maxdepth 1 -mtime 0 -exec cp {} /home/zago/atusite/kmail \; cd /home/zago/guiaz/diversos mkdir /home/zago/atusite/diversos find -maxdepth 1 -mtime 0 -exec cp {} /home/zago/atusite/diversos \; cd /home/zago/docs ftp -vn www.zago.eti.br < atusite exit