<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2284669175077278192</id><updated>2012-01-30T23:07:53.296+01:00</updated><category term='linux'/><category term='microsoft'/><category term='hosting'/><category term='office'/><category term='posta'/><category term='backup'/><title type='text'>Elementare, Watson !</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://techmanie.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2284669175077278192/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://techmanie.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Marco Manieri</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-_qXtwTndfsE/AAAAAAAAAAI/AAAAAAAAIZY/NOHmhLH5zgc/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2284669175077278192.post-4048778362016755372</id><published>2010-11-02T16:54:00.003+01:00</published><updated>2010-11-02T16:59:21.214+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='backup'/><title type='text'>backup dati in FTP linux</title><content type='html'>script linux per backup dati via ftp su server esterno:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;# ftp.sh&lt;br /&gt;&lt;br /&gt;REMOTE='ipremoto'&lt;br /&gt;USER='user'&lt;br /&gt;PASSWORD='password'&lt;br /&gt;FTPLOG='/root/pxmonitor/logs/ftplog.txt'&lt;br /&gt;date &gt;&gt; $FTPLOG&lt;br /&gt;&lt;br /&gt;#######################################################################&lt;br /&gt;#&lt;br /&gt;# FTP connection and mget of files&lt;br /&gt;#&lt;br /&gt;#######################################################################&lt;br /&gt;&lt;br /&gt;cd /root/pxmonitor/localfiles&lt;br /&gt;ls -alh &gt; preftp.txt&lt;br /&gt;ftp -i -n -v $REMOTE &lt;&lt;_FTP&gt;&gt;$FTPLOG&lt;br /&gt;quote USER $USER&lt;br /&gt;quote PASS $PASSWORD&lt;br /&gt;binary&lt;br /&gt;cd transportstream&lt;br /&gt;mget *.ts&lt;br /&gt;close&lt;br /&gt;bye&lt;br /&gt;&lt;br /&gt;open -u 'userftp','passwordftp' -p 21 ipserverftp&lt;br /&gt;mirror -c -e -R /var/www/vhosts/directorydabackuppare&lt;br /&gt;exit&lt;br /&gt;&lt;br /&gt;schedulare con cron.d questo script.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2284669175077278192-4048778362016755372?l=techmanie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techmanie.blogspot.com/feeds/4048778362016755372/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://techmanie.blogspot.com/2010/11/backup-dati-in-ftp-linux.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2284669175077278192/posts/default/4048778362016755372'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2284669175077278192/posts/default/4048778362016755372'/><link rel='alternate' type='text/html' href='http://techmanie.blogspot.com/2010/11/backup-dati-in-ftp-linux.html' title='backup dati in FTP linux'/><author><name>Marco Manieri</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-_qXtwTndfsE/AAAAAAAAAAI/AAAAAAAAIZY/NOHmhLH5zgc/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2284669175077278192.post-4505648267837454857</id><published>2010-11-02T16:30:00.002+01:00</published><updated>2010-11-02T16:43:40.824+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>vsftp centos</title><content type='html'>ottimo programmino per linux, centos nel mio caso.&lt;div&gt;quida minimale per una corretta e funzionante configurazione:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;# yum install vsftpd&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ftp con vsftp &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;chkconfig vsftpd on&lt;/div&gt;&lt;div&gt;nano /etc/vsftpd/vsftpd.conf&lt;/div&gt;&lt;div&gt;&lt;&lt;/div&gt;&lt;div&gt;anonymous_enable=NO&lt;/div&gt;&lt;div&gt;local_enable=YES&lt;/div&gt;&lt;div&gt;write_enable=YES&lt;/div&gt;&lt;div&gt;dirmessage_enable=YES&lt;/div&gt;&lt;div&gt;xferlog_enable=YES&lt;/div&gt;&lt;div&gt;connect_from_port_20=YES&lt;/div&gt;&lt;div&gt;listen=YES&lt;/div&gt;&lt;div&gt;chroot_local_user=YES&lt;/div&gt;&lt;div&gt;pam_service_name=vsftpd&lt;/div&gt;&lt;div&gt;userlist_enable=NO&lt;/div&gt;&lt;div&gt;tcp_wrappers=YES&lt;/div&gt;&lt;div&gt;xferlog_std_format=YES&lt;/div&gt;&lt;div&gt;local_umask=022&lt;/div&gt;&lt;div&gt;&gt;&lt;/div&gt;&lt;div&gt;nano /etc/vsftpd/user_list&lt;/div&gt;&lt;div&gt;&lt;&lt;/div&gt;&lt;div&gt;utente richiesto&lt;/div&gt;&lt;div&gt;root&lt;/div&gt;&lt;div&gt;&gt;&lt;/div&gt;&lt;div&gt;nano /etc/vsftpd/ftpusers&lt;/div&gt;&lt;div&gt;&lt;&lt;/div&gt;&lt;div&gt;cancellare utenti a cui si vuole dare l'accesso&lt;/div&gt;&lt;div&gt;&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;aggiungere utente:&lt;/div&gt;&lt;div&gt;adduser utenterichiesto&lt;/div&gt;&lt;div&gt;inserire password:&lt;/div&gt;&lt;div&gt;passwd utenterichiesto&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;service vsftpd restart&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;se non funza:&lt;/div&gt;&lt;div&gt;controllo firewall per problemi&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;configurare gruppo con permessi di scrittura su tale directory:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Supponiamo, per esempio, che un gruppo di persone lavora sui file nella directory /var/www/vhosts/.&lt;/div&gt;&lt;div&gt;Alcune persone possono modificare la directory ma ovviamente non tutti i componenti del gruppo. Quindi create prima un gruppo es. ftpvhosts, come riportato dal seguente comando: &lt;/div&gt;&lt;div&gt;/usr/sbin/groupadd  ftpvhosts&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;Per associare il contenuto della directory al gruppo ftpvhosts, digitate: &lt;/div&gt;&lt;div&gt;chown -R root: ftpvhosts /var/www/vhosts&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;ora possibile aggiungere gli utenti appropriati al gruppo con il comando gpasswd: &lt;/div&gt;&lt;div&gt;/usr/bin/gpasswd -a &lt;username&gt; ftpvhosts&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;Per abilitare gli utenti a creare file all'interno della directory, usare il seguente comando: &lt;/div&gt;&lt;div&gt;chmod 775 /var/www/vhosts&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;Un nuovo file creato viene assegnato al gruppo privato di default dell'utente. Successivamente, impostare al setgid bit, che assegna ogni cosa creata nella directory, lo stesso permesso della directory (ftpvhosts). Usare il seguente comando: &lt;/div&gt;&lt;div&gt;chmod 2775 /var/www/vhosts&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2284669175077278192-4505648267837454857?l=techmanie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techmanie.blogspot.com/feeds/4505648267837454857/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://techmanie.blogspot.com/2010/11/vsftp-centos.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2284669175077278192/posts/default/4505648267837454857'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2284669175077278192/posts/default/4505648267837454857'/><link rel='alternate' type='text/html' href='http://techmanie.blogspot.com/2010/11/vsftp-centos.html' title='vsftp centos'/><author><name>Marco Manieri</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-_qXtwTndfsE/AAAAAAAAAAI/AAAAAAAAIZY/NOHmhLH5zgc/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2284669175077278192.post-121844596594880374</id><published>2010-01-14T12:11:00.000+01:00</published><updated>2010-01-14T12:19:11.012+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='hosting'/><title type='text'>Plesk linux suggerimento</title><content type='html'>Per monitorare la quantità delle mail in coda possiamo usare &lt;a href="http://docs.google.com/Doc?docid=0ATWEfKkEE744ZGNoemRmeHBfMGdoa3o0bWhu&amp;amp;hl=it"&gt;Questo script&lt;/a&gt; ed editando 30 (LIMITE=30)  con un numero a scelta ci arriva un allert via mail (impostando account e server sempre da script) che avverte che la coda è stata raggiunta/superata.&lt;br /&gt;&lt;a href="http://docs.google.com/Doc?docid=0ATWEfKkEE744ZGNoemRmeHBfMGdoa3o0bWhu&amp;amp;hl=it"&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2284669175077278192-121844596594880374?l=techmanie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techmanie.blogspot.com/feeds/121844596594880374/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://techmanie.blogspot.com/2010/01/plesk-linux-suggerimento.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2284669175077278192/posts/default/121844596594880374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2284669175077278192/posts/default/121844596594880374'/><link rel='alternate' type='text/html' href='http://techmanie.blogspot.com/2010/01/plesk-linux-suggerimento.html' title='Plesk linux suggerimento'/><author><name>Marco Manieri</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-_qXtwTndfsE/AAAAAAAAAAI/AAAAAAAAIZY/NOHmhLH5zgc/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2284669175077278192.post-3435609660524006683</id><published>2010-01-11T10:13:00.000+01:00</published><updated>2010-01-14T09:58:14.727+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='office'/><category scheme='http://www.blogger.com/atom/ns#' term='posta'/><category scheme='http://www.blogger.com/atom/ns#' term='microsoft'/><title type='text'>Maledetto OUTLOOK!</title><content type='html'>Quante volte ho smadonnato riguardo al beneamato file di outlook pst / ost.&lt;br /&gt;I vari problemi sono:&lt;br /&gt;impossibilità di utilizzo di outlook, impossibile leggere, inviare, ricevere, cancellare, tutto...&lt;br /&gt;sputtanamento profilo office outlook / outlook express&lt;br /&gt;blocco posta in uscita&lt;br /&gt;&lt;br /&gt;per la prevenzione a questi problemi occorre creare più file pst (office outlook) o creare varie cartelle (outlook express).&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;1.A&lt;/span&gt;&lt;/strong&gt; = Office Outlook:&lt;br /&gt;file-&gt;nuovo-&gt;file dati di outlook... scegliere ".... pst" / dare un nome riconoscibile (ultimo_outlook.pst)/ scegliere "nessuna crittografia".&lt;br /&gt;Verrà creata una cartella dati contenente solo il cestino e qualche cartella di default.&lt;br /&gt;Creiamo a mano 2 cartelle per archiviare la posta in arrivo e posta inviata:&lt;br /&gt;Tasto destro sulla cartella dati appena creata "crea nuova cartella" salvarla come x es. Posta inviata 2009. fare lo stesso creando Posta in arrivo 2009.&lt;br /&gt;Selezioniamo poi la cartella dati corrente (cartella personale) e andiamo in posta inviata, sistemiamo la visualizzazione in ordine di tempo e andiamo a selezionare tutta la posta del 2009: selezioniamo la prima mail del 2009 (1/01/09) e poi selezioniamo l'ultima tenendo premuto il tasto shift (31/12/09), clic col tasto sinistro del mouse su un punto a caso selezionato e spostare i file, tenendo premuto il tasto sinistro del mouse, posizionarsi sulla cartella precedentemente creata (Posta inviata 2009) a questo punto mollare il mouse, la posta verrà spostata dal pst attuale e archiviata e sempre disponibile sul nuovo pst.&lt;br /&gt;Fare lo stesso per posta ricevuta 2009.&lt;br /&gt;&lt;br /&gt;In questo modo il nostro outlook sarà più leggero, veloce ed eviteremo tutti i problemi legati al limite di grandezza del file pst.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;1.B&lt;/span&gt;&lt;/strong&gt; = Outlook Express:&lt;br /&gt;Stesso procedimento di Office Outlook, che però non utilizza file pst ma dbx che vengono creati ,semplicemente,alla creazione di una nuova cartella.&lt;br /&gt;Quindi creiamo una nuova cartella (es. posta inviata 2009) e copiamo tutte le vecchie mail in questa.&lt;br /&gt;&lt;br /&gt;In questo modo avremo diversi file dbx più leggeri, eviteremo di trovarici nei pasticci.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;OFFICE OUTLOOK&lt;/span&gt;&lt;br /&gt;Per risovere i problemi riguardo alla grandezza del file pst ci sono varie soluzioni tutte +o- valide:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;1.&lt;/span&gt;&lt;/strong&gt;La prima più veloce, a volte efficace a volte no è di utilizzare un programma di windows "scanpst.exe" presente nella (mia) cartella: C:\Programmi\File comuni\System\MSMAPI\1040&lt;br /&gt;chiudere office e tutti i suoi processi.&lt;br /&gt;lanciare scanpst.exe: programma molto frendly user per correggere degli errori del pst.&lt;br /&gt;&lt;br /&gt;oltre alla scansione del pst dobbiamo scansionare anche ost di office il programma da usare si chiama "scanost.exe" sempre presente nella (mia) cartella: C:\Programmi\File comuni\System\MSMAPI\1040&lt;br /&gt;chiudere office e tutti i suoi processi.&lt;br /&gt;lanciare scanpst.exe: scansioniamo tutto e cecchiamo correggi errori (in basso a sinistra).&lt;br /&gt;&lt;br /&gt;Una volta usati questi 2 programmi testiamo se ora tutto funza.&lt;br /&gt;&lt;br /&gt;Altra soluzione&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;2.&lt;/span&gt;&lt;/strong&gt;Creare un nuovo profilo:&lt;br /&gt;per creare un nuovo profilo andare in Pannello di Controllo-&gt;posta elettronica-&gt;profili..&lt;br /&gt;Creiamo un nuovo profilo con Aggiungi...&lt;br /&gt;e cecchiamo,momentaneamente, "Richiedi un profilo da utilizzare".&lt;br /&gt;Avviamo Office Outlook e selezioniamo il nuovo profilo pulito, ora importiamo il file pst vecchio e ricreiamo gli account di posta.&lt;br /&gt;Testiamo se ora tutto funza.&lt;br /&gt;&lt;br /&gt;Altra solizione&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;3.&lt;/span&gt;&lt;/strong&gt;Scarichiamo dal web questo programma: pstfilerecoverytool (a pagamento)&lt;br /&gt;facile da trovare anche ""non a pagamento""&lt;br /&gt;è un programma molto semplice che ci permette di gestire il nostro pst gigante in modo da separare il file, spostando mail dalla pst incriminato ad uno nuovo appena creato.&lt;br /&gt;&lt;a href="http://www.pstfilerecoverytool.com/"&gt;Quì il programma&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;OUTLOOK EXPRESS&lt;/span&gt;&lt;br /&gt;anche qui ci sono vari metodi, quelli testati e che hanno risolto i mie problemi sono:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;1.&lt;/span&gt;&lt;/strong&gt; Creazione nuovo profile e importato vecchie mail:&lt;br /&gt;File-&gt;Identità-&gt;Aggiungi nuova identità...&lt;br /&gt;compilare e selezionare la nuova identità per utilizzare Outlook Ex.&lt;br /&gt;importare ora le vecchie mail sulla nuova identità:&lt;br /&gt;File-&gt;Importa-&gt;Messaggi...&lt;br /&gt;sfogliare il pc e selezionare tutte le cartelle da importare.&lt;br /&gt;&lt;br /&gt;Capita molto spesso che si sputtani il profilo, con questa procedura tutto funzionerà&lt;br /&gt;ma se il problema non è quello ma riguarda la grandezza dei file dbx (i nostri amati 2gb) allora passiamo al seguente procedimento:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;2.&lt;/span&gt;&lt;/strong&gt; Partizionati i file dbx grossi creando nuove cartelle e importando tramite questo programma:OEMailRecovery (a pagamento) ma anche no... facile e veloce da usare.&lt;br /&gt;stesso concetto del punto 3 per recuperare mail dal pst.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Altra cosa utile è il converitore di file OST to PST (l'estensione ost se presente nel pc client proviene dalla cache di exchange) per utilizzare un ost come pst utilizzate &lt;a href="http://www.windowsreference.com/files/ost2pst.exe"&gt;questo programmino &lt;/a&gt;free che mi ha salvato varie volte.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;link utili:&lt;br /&gt;&lt;a href="http://www.slipstick.com/problems/scanpst.asp"&gt;http://www.slipstick.com/problems/scanpst.asp&lt;/a&gt;&lt;br /&gt;&lt;a href="http://office.microsoft.com/en-us/outlook/ha010563001033.aspx"&gt;http://office.microsoft.com/en-us/outlook/ha010563001033.aspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2284669175077278192-3435609660524006683?l=techmanie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techmanie.blogspot.com/feeds/3435609660524006683/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://techmanie.blogspot.com/2010/01/maledetto-outlook.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2284669175077278192/posts/default/3435609660524006683'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2284669175077278192/posts/default/3435609660524006683'/><link rel='alternate' type='text/html' href='http://techmanie.blogspot.com/2010/01/maledetto-outlook.html' title='Maledetto OUTLOOK!'/><author><name>Marco Manieri</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-_qXtwTndfsE/AAAAAAAAAAI/AAAAAAAAIZY/NOHmhLH5zgc/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2284669175077278192.post-7795668289733155024</id><published>2010-01-07T11:46:00.000+01:00</published><updated>2010-01-14T12:06:30.911+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='backup'/><title type='text'>Script backup databases linux</title><content type='html'>Grazie a &lt;a href="http://docs.google.com/Doc?docid=0ATWEfKkEE744ZGNoemRmeHBfMWd2cjN4bmN6&amp;amp;hl=it"&gt;questo script&lt;/a&gt; possiamo backuppare tutti i databases presenti sul nostro server linux, il procedimento è veloce e gli unici dati da modificare sono:&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;# Username to access the MySQL server e.g. dbuserUSERNAME=root&lt;br /&gt;# Username to access the MySQL server e.g. passwordPASSWORD=PASSWORD&lt;br /&gt;# Host name (or IP address) of MySQL server e.g localhostDBHOST=localhost&lt;br /&gt;# List of DBNAMES for Daily/Weekly Backup e.g. "DB1 DB2 DB3"DBNAMES="mysql report test"&lt;br /&gt;# Backup directory location e.g /backupsBACKUPDIR="/PERCORSO_DIRECTORY_DESTINAZIONE" &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;il PERCORSO_DIRECTORY_DESTINAZIONE è preferibile impostarlo, per motivi di sicurezza, su una directory montata esterna al server.&lt;br /&gt;&lt;br /&gt;il risultato finale sarà la creazione di queste cartelle:&lt;br /&gt;daily (ogni giorno)&lt;br /&gt;monthly (prima domenica del mese )&lt;br /&gt;weekly (domenica)&lt;br /&gt;&lt;br /&gt;all'interno di queste cartelle un'altra sottocartella con il nome del db nel mio caso:&lt;br /&gt;mysql&lt;br /&gt;report&lt;br /&gt;test&lt;br /&gt;&lt;br /&gt;all'interno della cartella il dump del db in formato compatto gz, esempio:&lt;br /&gt;mysql_2010-01-01_01h30m.Friday.sql.gz&lt;br /&gt;&lt;br /&gt;PER SCHEDULARE IL BACKUP:&lt;br /&gt;aggiungere la seguente riga al file in /etc/cron.d/FILE_DI_CRON&lt;br /&gt;&lt;span style="font-size:78%;color:#ffffff;"&gt;0 2 * * * root /bin/sh /PERCORSO_DOVE_AVETE_POSIZIONATO_LO_SCRIPT/backup_mysql_dump.sh 2&gt;/var/log/backuplog1 1&gt;/var/log/backuplog2&lt;/span&gt;&lt;br /&gt;in questo caso lo script viene avviato alle 2.00am di ogni giorno.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2284669175077278192-7795668289733155024?l=techmanie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techmanie.blogspot.com/feeds/7795668289733155024/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://techmanie.blogspot.com/2010/01/linux-script-backup-databases-linux.html#comment-form' title='5 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2284669175077278192/posts/default/7795668289733155024'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2284669175077278192/posts/default/7795668289733155024'/><link rel='alternate' type='text/html' href='http://techmanie.blogspot.com/2010/01/linux-script-backup-databases-linux.html' title='Script backup databases linux'/><author><name>Marco Manieri</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-_qXtwTndfsE/AAAAAAAAAAI/AAAAAAAAIZY/NOHmhLH5zgc/s512-c/photo.jpg'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2284669175077278192.post-1972623624817132476</id><published>2010-01-07T11:15:00.000+01:00</published><updated>2010-01-07T12:16:22.149+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='backup'/><title type='text'>Backup differenziale su share windows RDIFF-BACKUP</title><content type='html'>testato su centos 5.2 - 5.4 , backup differenziale su share windows. no samba.&lt;br /&gt;&lt;br /&gt;installo repository dove è presente il programma che andiamo ad utilizzare RDIFF-BACKUP:&lt;br /&gt;#rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm&lt;br /&gt;&lt;br /&gt;modifico il file repo per evitare di utilizzarlo ad ogni yum:&lt;br /&gt;#nano /etc/yum.repos.d/rpmforge.repo&lt;br /&gt;modifico la riga enable 1 con 0 per disabilitare i sorgenti automatici.&lt;br /&gt;&lt;br /&gt;installo programmi necessari per l'utilizzo di rdiff-backup:&lt;br /&gt;#yum --enablerepo=rpmforge install librsync librsync-devel python python-devel&lt;br /&gt;&lt;br /&gt;installo il programma rdiff-backup utilizzando i nuovi reposiroty:&lt;br /&gt;#yum --enablerepo=rpmforge install rdiff-backup&lt;br /&gt;&lt;br /&gt;creo la lista delle cartelle da backuppare:&lt;br /&gt;#cd /etc/&lt;br /&gt;#mkdir rdiff-backup&lt;br /&gt;#cd rdiff-backup&lt;br /&gt;#nano rdiff-backup_list_dir.txt&lt;br /&gt;scrivo nel file le directory da backuppare esempio:&lt;br /&gt;/var/www/vhosts&lt;br /&gt;/var/www/test&lt;br /&gt;&lt;br /&gt;creo script per avviare il backup in automatico:&lt;br /&gt;#nano rdiff-backup-script.sh&lt;br /&gt;inserisco questo&lt;br /&gt;#!/bin/sh&lt;br /&gt;#monto volume&lt;br /&gt;mount -t cifs -o username=USERNAME,password=PASSWORD //IP/PERCORSO_DIRECTORY_SORGENTE /mnt/PERCORSO_DIRECTORY_DESTINAZIONE&lt;br /&gt;&lt;br /&gt;#esegui backup&lt;br /&gt;rdiff-backup --include-globbing-filelist /etc/rdiff-backup/rdiff-backup_list_dir.txt --exclude / / /mnt/PERCORSO_DIRECTORY_DESTINAZIONE/ &amp;amp;&amp;amp; echo&lt;br /&gt;'date' "rdiff-backup OK" &gt;&gt; /var/log/rdiff-backup.log&lt;br /&gt;&lt;br /&gt;permessi per eseguire il file:&lt;br /&gt;chmod 755 rdiff-backup-script.sh&lt;br /&gt;&lt;br /&gt;schedulare il backup:&lt;br /&gt;#nano /etc/cron.d/FILEINCRON&lt;br /&gt;aggiungo la riga&lt;br /&gt;#*&lt;span class="Apple-tab-span" style="WHITE-SPACE: pre"&gt; &lt;/span&gt;0&lt;span class="Apple-tab-span" style="WHITE-SPACE: pre"&gt; &lt;/span&gt;*&lt;span class="Apple-tab-span" style="WHITE-SPACE: pre"&gt; &lt;/span&gt;*&lt;span class="Apple-tab-span" style="WHITE-SPACE: pre"&gt; &lt;/span&gt;*&lt;span class="Apple-tab-span" style="WHITE-SPACE: pre"&gt; &lt;/span&gt;root&lt;span class="Apple-tab-span" style="WHITE-SPACE: pre"&gt; &lt;/span&gt;/bin/sh&lt;span class="Apple-tab-span" style="WHITE-SPACE: pre"&gt; &lt;/span&gt;/etc/rdiff-backup/rdiff-backup-script.sh&lt;br /&gt;&lt;br /&gt;testo tutto.&lt;br /&gt;&lt;br /&gt;Per recuperare un file dell’ultimo backup&lt;br /&gt;&lt;br /&gt;cp -a /patchbackup/nomefile /dovelovogliomettere&lt;br /&gt;&lt;br /&gt;se invece voglio recuperare una versione particolare, es. di 10 giorni fa…&lt;br /&gt;rdiff-backup -r 10D /patchbackup/nomefile /dovelovogliomettere&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2284669175077278192-1972623624817132476?l=techmanie.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techmanie.blogspot.com/feeds/1972623624817132476/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://techmanie.blogspot.com/2010/01/linux-backup-differenziale-su-share.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2284669175077278192/posts/default/1972623624817132476'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2284669175077278192/posts/default/1972623624817132476'/><link rel='alternate' type='text/html' href='http://techmanie.blogspot.com/2010/01/linux-backup-differenziale-su-share.html' title='Backup differenziale su share windows RDIFF-BACKUP'/><author><name>Marco Manieri</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-_qXtwTndfsE/AAAAAAAAAAI/AAAAAAAAIZY/NOHmhLH5zgc/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry></feed>
