please if you can help me .... when i made the backup in the "root" /home ... the size of the root space not enough so i try to make the backup on other place "/backup" but the following message appear : (-bash: file_name : Prmission denied)
-
You may not have permission to (a) read files in /home, especially if its a shared host, or (b) write to /backup. If you run it as root (using either su or sudo), you should be able to run the command.
EDIT: When you run sudo, what you'll want to do is
sudo sh -c 'svnadmin dump myrepos > dumpfile'; that way, you're running the entire command--redirection and all--as root.Osama Ahmad : i used sudo but the same message appear !!! i don't konow why ... in other word the following command don't work any where elsa home "svnadmin dump myrepos > dumpfile" ... any other plase give me "NO Prmission"Redmumba : How did you run that command? If you did `sudo svnadmin dump myrepos > dumpfile`, you are only assuming superuser access for the svnadmin aspect. What you'll want to do is `sudo sh -c 'svnadmin dump myrepos > dumpfile'`; that way, you're running the entire command--redirection and all--as root.From Redmumba -
You wrote you use sudo. The command
# sudo svnadmin dump myrepos > dumpfilewill run
`svnadmin dump myreposwith the rights of root. The> dumpfilepart will not have the rights of root.You could write a script, put the command in it and sudo the whole script or construct a one-liner like
# sudo svnadmin dump myrepos | sudo tee dumpfile > /dev/nullor
# sudo sh -c 'svnadmin dump myrepos > dumpfile'or
# svnadmin dump myrepos | sudo tee dumpfile > /dev/nullif you are allowed to read
myreposwith user-rightsFrom krissi
0 comments:
Post a Comment