©XSIBackup-Free: Free Backup Software for ©VMWare ©ESXi

Forum ©XSIBackup: ©VMWare ©ESXi Backup Software


You are not logged in.

#1 2017-08-12 22:28:53

ld
Member
Registered: 2017-08-12
Posts: 6

Permission Denied error

Hello,
I have a fresh install of xsibackup (downloaded and installed today 8/11/2017) running on ESXi 5.5.0.
When I try to run the backup via ssh (logged in as root) it gives the error  -sh: /vmfs/volumes/datastore1/xsi-dir: Permission denied

The command I
/vmfs/volumes/datastore1/xsi-dir ./xsibackup  --backup-point=/vmfs/volumes/datastore1 --backup-type=custom --backup-vms="SBS_2011" --mail-from=xsibackup@XXXXX --mail-to=alerts@XXXXX --smtp-srv=192.168.XX.21 --smtp-port=25 --smtp-usr=User@XXXXXX --smtp-pwd=xxxx --testmode=true


I have used xsibackup before (though I am still learning the power)

Thank You in Advance

Last edited by ld (2017-08-12 22:30:24)

Offline

#2 2017-08-14 13:40:15

admin
Administrator
Registered: 2017-04-21
Posts: 2,055

Re: Permission Denied error

MANUAL INSTALLATION PROCEDURE ESXi Hypervisor 5.1/5.5/6.0/6.5

- Extract to the desired path (default recommended: /vmfs/volumes/datastore1/xsi-dir).
ATTENTION: copy all files and folders inside the XSIBACKUP-PRO package to the install dir, they are all part of the program

- If you have a previous installation (Free or Pro), remove all files but the RSA Key pair (xsibackup_id_rsa & xsibackup_id_rsa.pub) and the xsibackup-cron file (in case you want to keep your scheduled jobs), then unzip the contents of this file there. If you keep all paths the same you don't need to reinstall cron.

- If this is your first installation, choose a persistent path to install XSIBACKUP-PRO. If you are not 100% sure that the path you want to install is persistent, use the recommended installation path: /vmfs/volumes/datastore1/xsi-dir

- Assign execute permissions to the xsibackup file and the bin directory.

    youresxi# cd /vmfs/volumes/datastore1/xsi-dir
    youresxi# chmod -R 0700 xsibackup EULA bin conf

- Read the ManPage at (c)XSIBackup Classic Man Page

Offline

#3 2017-08-18 13:57:40

ld
Member
Registered: 2017-08-12
Posts: 6

Re: Permission Denied error

Thank you for your reply!

I followed the advice with no change in error message

Then I deleted the complete xsi-dir directory on datastore1, requested new key, installed xsibackup via the included script (as root)

ran ./xsibackup after the script finished. I got the help/usage page, ran ./xsibackup --install-cron (it said it was already installed, did not replace it)

I get the same -sh: /vmfs/volumes/datastore1/xsi-dir: Permission denied

Last edited by ld (2017-08-18 14:12:55)

Offline

#4 2017-08-18 14:01:20

ld
Member
Registered: 2017-08-12
Posts: 6

Re: Permission Denied error

Script results

login as: root
Using keyboard-interactive authentication.
Password:
The time and date of this login have been sent to the system logs.

The ESXi Shell can be disabled by an administrative user. See the
vSphere Security documentation for more information.
~ # cd /vmfs/volumes/datastore1/xsi-dir 2>/dev/null || mkdir /vmfs/volumes/datastore1/xsi-dir && \
> cd /vmfs/volumes/datastore1/xsi-dir && \
> esxcli network firewall unload && \
> wget /?key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -O
xsibackup.zip && \
> unzip -o xsibackup.zip || cat xsibackup.zip && echo "" && \
> chmod -R 0700 xsibackup* bin && \
> rm -rf xsibackup.zip && \
> esxcli network firewall load
Connecting to a.33hops.com (188.165.2.135:80)
xsibackup.zip        100% |*************************************************************|   548k  0:00:00 ETA
Archive:  xsibackup.zip
   creating: src/
  inflating: src/borg
  inflating: src/custimg
  inflating: src/esxbackup
  inflating: src/events
  inflating: src/onediff
  inflating: src/restore
  inflating: src/sendmail
  inflating: src/smartinfo
  inflating: src/xsitools
  inflating: EULA
  inflating: README.txt
  inflating: xsibackup
   creating: bin/
  inflating: bin/xsibackup-rsync
   creating: conf/
  inflating: conf/smtpsrvs

/vmfs/volumes/4e663636-31183741-349e-e41f13bd797a/xsi-dir # ./xsibackup
###########################################################################
#                XSIBACKUP-FREE: END-USER LICENSE AGREEMENT               #
###########################################################################



COPYRIGHT 2015 | DANIEL JESUS GARCIA FIDALGO
33HOPS, SISTEMAS DE INFORMACIÃN Y REDES, S.L.

YOU ARE ALLOWED TO USE THIS SOFTWARE FOR PERSONAL OR
COMMERCIAL USE. YOU ARE ALLOWED TO REDISTRIBUTE IT
WITHOUT ANY MODIFICATION ON A ONE TO ONE BASE. YOU
CAN MODIFY IT'S SOURCE CODE FREELY JUST AS LONG AS
YOU DO NOT REDISTRIBUTE THE MODIFIED SOURCE CODE IN
ANY WAY.

THIS PROGRAM IS DISTRIBUTED AS IS WITHOUT ANY WARRANTY;
USE AT YOUR OWN RISK.

NOTE: RSYNC IS A DIFFERENT PROGRAM THAN XSIBACKUP RELEASED
UNDER A DIFFERENT LICENSE. XSIBACKUP MAKES USE OF RSYNC
THROUGH ITS COMMAND LINE OPTIONS AND IS USED AS A MERE
DEPENDENCY. XSIBACKUP LICENSE AFFECTS ONLY XSIBACKUP CODE.

YOU CAN DOWNLOAD RSYNC SOURCE CODE AT:
HTTPS://DOWNLOAD.SAMBA.ORG/PUB/RSYNC/

YOU CAN REVIEW RSYNC LICENSE AT:
HTTPS://RSYNC.SAMBA.ORG/GPL.HTML

I ACCEPT THE LICENSE AGREEMENT (y/n) y

#####################################################################################
#                                                                                   #
#  (c) XSIBACKUP-FREE 9.1.9 | Backup for (c) VMWARE ESXi Hypervisor by 33hops.com   #
#                                                                                   #
#####################################################################################

XSIBackup PID:          1168930                                 localhost.localdomain
Preparing help, please wait...
XSIBACKUP-FREE 9.1.9

Offline

#5 2017-08-18 17:15:28

admin
Administrator
Registered: 2017-04-21
Posts: 2,055

Re: Permission Denied error

I don't see where the

-sh: /vmfs/volumes/datastore1/xsi-dir: Permission denied

error is in the output you posted.

Offline

#6 2017-08-25 20:37:44

ld
Member
Registered: 2017-08-12
Posts: 6

Re: Permission Denied error

Thank You for the reply

The error is not when I run the install script (output of the script results I posted )

The error happens when I test a backup
./xsibackup  --backup-point=/vmfs/volumes/datastore1 --backup-type=custom --backup-vms="SBS_2011" --mail-from=xsibackup@XXXXX --mail-to=alerts@XXXXX --smtp-srv=192.168.XX.21 --smtp-port=25 --smtp-usr=User@XXXXXX --smtp-pwd=xxxx --testmode=true

Offline

#7 2017-08-25 20:48:42

admin
Administrator
Registered: 2017-04-21
Posts: 2,055

Re: Permission Denied error

But the output you posted does indeed execute xsibackup. The license agreement and the output below is xsibackup output. You are probably just using a wrong path. If you execute this

./xsibackup --backup-point=/vmfs/volumes/datastore1 --backup-type=custom --backup-vms="SBS_2011" --mail-from=xsibackup@XXXXX --mail-to=alerts@XXXXX --smtp-srv=192.168.XX.21 --smtp-port=25 --smtp-usr=User@XXXXXX --smtp-pwd=xxxx --testmode=true

From inside the /vmfs/volumes/datastore1/xsi-dir directory xsibackup will execute.

Offline

#8 2017-09-12 17:21:35

ld
Member
Registered: 2017-08-12
Posts: 6

Re: Permission Denied error

Admin:
Sorry for the slow response.
Your reply on 8/25 is correct.
However when I execute ~# /vmfs/volumes/datastore1/xsi-dir/ ./xsibackup ........... it returns: Permission Denied (I have tried with and without the trailing /)

Offline

#9 2017-09-12 17:33:33

roberto
Moderator
Registered: 2017-04-22
Posts: 49

Re: Permission Denied error

You don't execute programs in the command line this way

/vmfs/volumes/datastore1/xsi-dir/ ./xsibackup

Id, I don't want you to feel you are not getting answers, but this whole topic makes no sense. This is basic Linux command line knowledge.

1 - You can execute a program calling it by absolute path.

/vmfs/volumes/datastore1/xsi-dir/xsibackup

2 - Or from its containing folder.

./xsibackup

The way you are trying to execute the program is plainly wrong.

Last edited by roberto (2017-09-12 17:33:55)

Offline

#10 2017-09-21 21:53:47

ld
Member
Registered: 2017-08-12
Posts: 6

Re: Permission Denied error

My apologies for taking your time. I can now plainly see why the error occurs and the distinction you made on how the command is run. Again apologies

Offline

Board footer