The error message isn't related to the version of OTRS. It's a permission error.
The code that makes the error is this: 193my $Directory = "$Opts{d}/$Y-$M-$D" . "_" . "$h-$m"; 194if ( !mkdir($Directory) ) { 195 print STDERR "ERROR: Can't create directory: $Directory: $!\n"; 196 exit 1; 197} So, if *you* can't mkdir backup/2012-07-25_17-05, then neither can OTRS. On Tue, Jul 24, 2012 at 11:11 PM, Adi Ariyanto <aariya...@binus.edu> wrote: > Just try L, fyi I am use OTRS 3.1.6**** > > ** ** > > [root@localhost scripts]# ./backup.pl -d backup**** > > ERROR: Can't create directory: backup/2012-07-25_17-05: No such file or > directory**** > > [root@localhost scripts]#**** > > ** ** > > Fyi the located of perl is correct also in backup.pl file**** > > #!/usr/bin/perl -w**** > > ** ** > > *From:* otrs-boun...@otrs.org [mailto:otrs-boun...@otrs.org] *On Behalf > Of *Gerald Young > *Sent:* Wednesday, July 25, 2012 10:05 AM > > *To:* User questions and discussions about OTRS. > *Subject:* Re: [otrs] Backup on OTRS**** > > ** ** > > Did you try it without the trailing slash? **** > > On Tue, Jul 24, 2012 at 10:48 PM, Adi Ariyanto <aariya...@binus.edu> > wrote:**** > > Dear Gerald**** > > **** > > *This is screen capture on Debian,***** > > **** > > *Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent***** > > *permitted by applicable law.***** > > *Last login: Tue Jul 24 16:45:54 2012***** > > *root@ticketing:~# cd /opt/otrs/scripts/***** > > *root@ticketing:/opt/otrs/scripts# ls | more***** > > *apache2-httpd.include.conf***** > > *apache2-perl-startup.pl***** > > *auto_build***** > > *auto_build.sh***** > > *auto_docbuild.sh***** > > *backup **à** see I already make a folder name backup***** > > *backup.pl***** > > **** > > *for folder permission***** > > *root@ticketing:/opt/otrs/scripts# ls -a -l | more***** > > *total 572***** > > *drwxrwxr-x 7 otrs www-data 4096 Jul 25 09:08 .***** > > *drwxrwxrwx 8 root root 4096 Jul 20 16:46 ..***** > > *-rw-rw-r-- 1 otrs www-data 2099 Nov 6 2011 > apache2-httpd.include.conf***** > > *-rwxrwxr-x 1 otrs www-data 7360 Dec 13 2011 apache2-perl-startup.pl** > *** > > *drwxrwxr-x 2 otrs www-data 4096 Jun 4 14:31 auto_build***** > > *-rw-rw-r-- 1 otrs www-data 10568 Feb 9 19:33 auto_build.sh***** > > *-rw-rw-r-- 1 otrs www-data 4047 Feb 26 2009 auto_docbuild.sh***** > > *drwxr-xr-x 2 otrs www-data 4096 Jul 25 09:08 backup***** > > *-rwxrwxr-x 1 otrs www-data 7721 Jan 10 2011 backup.pl***** > > *drwxrwxr-x 3 otrs www-data 4096 Jun 4 14:31 database***** > > * ***** > > *when I execute backup.pl***** > > *root@ticketing:/opt/otrs/scripts# bash***** > > *root@ticketing:/opt/otrs/scripts# ./backup.pl -d backup/***** > > *ERROR: Can't create directory: backup//2012-07-25_09-36: No such file or > directory***** > > *root@ticketing:/opt/otrs/scripts#***** > > * ***** > > **** > > *This is from my Centos 6 Machine (correction I used CentOS 6 Minimal) **J > ***** > > *[root@localhost scripts]# ls -a -l | more***** > > *total 572***** > > *drwxrwxr-x 7 otrs apache 4096 Jul 24 23:02 .***** > > *drwxr-xr-x 8 root root 4096 Jul 24 05:30 ..***** > > *-rw-rw-r-- 1 otrs apache 2099 Jun 4 14:36 apache2-httpd.include.conf* > **** > > *-rwxrwxr-x 1 otrs apache 7360 Jun 4 14:36 apache2-perl-startup.pl**** > * > > *drwxrwxr-x 2 otrs apache 4096 Jul 24 05:30 auto_build***** > > *-rw-rw-r-- 1 otrs apache 10568 Jun 4 14:36 auto_build.sh***** > > *-rw-rw-r-- 1 otrs apache 4047 Jun 4 14:36 auto_docbuild.sh***** > > *drwxr-xr-x 2 otrs apache 4096 Jul 24 23:02 backup***** > > *-rwxrwxr-x 1 otrs apache 7721 Jun 4 14:36 backup.pl***** > > *drwxrwxr-x 3 otrs apache 4096 Jul 24 05:30 database***** > > * ***** > > * ***** > > *This I when I try run backup.pl ***** > > *[root@localhost scripts]# bash***** > > *[root@localhost scripts]# ./backup.pl -d backup/***** > > *ERROR: Can't create directory: backup//2012-07-25_16-47: No such file or > directory***** > > *[root@localhost scripts]#***** > > * ***** > > Any idea L hiks hiks..**** > > *From:* otrs-boun...@otrs.org [mailto:otrs-boun...@otrs.org] *On Behalf > Of *Gerald Young > *Sent:* Tuesday, July 24, 2012 6:57 PM > *To:* User questions and discussions about OTRS. > *Subject:* Re: [otrs] Backup on OTRS**** > > **** > > If you received such an error, it is likely not lying to you that there is > no writable directory named "backup" in the root "/" of your filesystem. > Either create it or specify an alternate path to dump the backup.**** > > On Tue, Jul 24, 2012 at 7:18 AM, Steve Clark <scl...@netwolves.com> wrote: > **** > > On 07/24/2012 05:16 AM, Adi Ariyanto wrote:**** > > Hi, did someone ever meet this case ?**** > > **** > > I try to backup my otrs with this command**** > > ./backup.pl -d /backup/**** > > **** > > But I got “ERROR: No Such directory: /backup/**** > > **** > > I google and found an post that said backup.pl not work on debian, my > OTRS run on Debian, then I try install OTRS on CentOS then I try run > backup.pl but found the same error.**** > > **** > > What I have try**** > > 1. Try to change group permission (chown) **** > > a. On Debian : chown otrs www-data /backup/**** > > b. On CentOS : chown otrs apache /backup/**** > > **** > > Any idea ?**** > > **** > > Hmm... On CentOS 5.x I use a shell script from a root cron job that > has > #!/bin/sh > /opt/otrs/scripts/backup.pl -d /opt/backups/ > > and it work just fine.**** > > -- > Stephen Clark > *NetWolves* > Director of Technology > Phone: 813-579-3200 > Fax: 813-882-0209 > Email: steve.cl...@netwolves.com > http://www.netwolves.com**** > > > --------------------------------------------------------------------- > OTRS mailing list: otrs - Webpage: http://otrs.org/ > Archive: http://lists.otrs.org/pipermail/otrs > To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs**** > > **** > ------------------------------ > > This email and its attachments may be confidential and are intended solely > for the use of the individual to whom it is addressed. Any views or > opinions expressed are solely those of the author and do not necessarily > represent those of Bina Nusantara. > If you are not the intended recipient of this email and its attachments, > you must take no action based upon them, nor must you copy or show them to > anyone. > Please contact the sender if you believe you have received this email in > error.**** > > ** ** > ------------------------------ > > This email and its attachments may be confidential and are intended solely > for the use of the individual to whom it is addressed. Any views or > opinions expressed are solely those of the author and do not necessarily > represent those of Bina Nusantara. > If you are not the intended recipient of this email and its attachments, > you must take no action based upon them, nor must you copy or show them to > anyone. > Please contact the sender if you believe you have received this email in > error.**** > > > --------------------------------------------------------------------- > OTRS mailing list: otrs - Webpage: http://otrs.org/ > Archive: http://lists.otrs.org/pipermail/otrs > To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs**** > > ** ** > ------------------------------ > > This email and its attachments may be confidential and are intended solely > for the use of the individual to whom it is addressed. Any views or > opinions expressed are solely those of the author and do not necessarily > represent those of Bina Nusantara. > If you are not the intended recipient of this email and its attachments, > you must take no action based upon them, nor must you copy or show them to > anyone. > Please contact the sender if you believe you have received this email in > error.**** > > ------------------------------ > This email and its attachments may be confidential and are intended solely > for the use of the individual to whom it is addressed. Any views or > opinions expressed are solely those of the author and do not necessarily > represent those of Bina Nusantara. > If you are not the intended recipient of this email and its attachments, > you must take no action based upon them, nor must you copy or show them to > anyone. > Please contact the sender if you believe you have received this email in > error. > > --------------------------------------------------------------------- > OTRS mailing list: otrs - Webpage: http://otrs.org/ > Archive: http://lists.otrs.org/pipermail/otrs > To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs >
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs