Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Member
    Join Date
    Apr 2002
    Posts
    38

    Default How Do I Download Backups?

    Our server is merrily backing up user accounts every night but there seems to be no way for me to get them off the server. I want to download them every morning and save them on my hard drive. I can't log in via ftp as root, but as the file permissions are 700 I can't touch them unless I am root. Presumably I need to change root's ftp permissions?

  2. #2
    Member SprintSlash's Avatar
    Join Date
    Jan 2003
    Posts
    165

    Default

    It's generally bad to FTP using root account. You should just create an FTP account that points to your backup directory.
    Join other cpanel users on IRC.. #cpanel @ EFnet

  3. #3
    Member
    Join Date
    Apr 2002
    Posts
    38

    Default

    How? Everything in the backup directory has rwx permissions for the root user only and it doesn't seem possible to change this (I've tried)

  4. #4
    Member FijianTribe's Avatar
    Join Date
    Jan 2003
    Posts
    70

    Default

    Try making the directory accessible to a usergroup, and add yourself to the user group. Then you should have permissions.
    Join other cpanel users on IRC.. #cpanel @ EFnet
    DIUINC.com

  5. #5
    Member
    Join Date
    Apr 2002
    Posts
    38

    Default

    The directory's permissions are :
    drwxr----- 5 root root 4096 Feb 5 07:11 cpbackup

    I have created another user and made them a member of the root group, the directory that cpbackup is in is it's home directory. However I can't login via ftp, presumably because the user is a member of the same group as root!

  6. #6
    Member SprintSlash's Avatar
    Join Date
    Jan 2003
    Posts
    165

    Default

    I guess you have to allow root access on your FTP.

    Assuming that you're using ProFTPd, put this next line in /etc/proftpd.conf:

    RootLogin on

    For more details, go to http://proftpd.linux.co.uk/localsite/Userguide/linked/config_ref_RootLogin.html
    Join other cpanel users on IRC.. #cpanel @ EFnet

  7. #7
    Member
    Join Date
    Apr 2002
    Posts
    38

    Default

    That doesn't work either. The login still comes back as invalid. ProFTPd seems to be using /etc/proftpd/passwd.vhosts to validate users and root isn't in there. Neither is the backup user I created yesterday (using useradd). Maybe if I could figure out how to add my backup user to the authentication file that ProFTPd is using I could download the backups with that user instead of root The ftp documentation isn't much help.

  8. #8
    Member
    Join Date
    Oct 2002
    Posts
    751

    Default

    Have you figured this out yet?

    I'm interested in a solution to this 'problem' as well.

    If you can't get it to work with proftpd, you could change ownership of the backups to a regular user before you download the files, and afterwards you change ownership back to root?

  9. #9
    Member
    Join Date
    Apr 2002
    Posts
    38

    Default

    I have several personal web sites hosted on the server but if I log in using any of those usernames then I am restricted to their home directory. Still trying to figure something out.

  10. #10
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    Use a program like SecureFX from VanDyke software. It allows secure ftp and root can login through it because it uses ssh.
    Regards,
    David
    Forum Moderator

  11. #11
    Member
    Join Date
    Apr 2002
    Posts
    38

    Default

    dgbaker is the winner for correctly solving today's problem I found a free secure ftp client at http://winscp.vse.cz/eng/about.php Also when searching on Google (&secure ftp& ssh) it seems that if you have SSH and ftp clients you can set them up to do this but it seems like a lot of faffing about when there's a nice, free client to download and simplify everything

    Thank you to everyone for all their input, it's much appreciated.

Similar Threads & Tags
Similar threads

  1. Replies: 0
    Last Post: 01-14-2011, 01:36 PM
  2. Cannot Download Backups...
    By ramcjbin in forum Data Protection
    Replies: 0
    Last Post: 04-11-2010, 08:58 AM
  3. Cannot download full backups
    By pastilles in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 03-02-2007, 05:22 AM
  4. Backups Don't Download!
    By soft_links in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-14-2006, 05:49 AM
  5. download backups currupt?
    By Craig in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 02-13-2002, 11:37 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube