Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6691025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:42:14+00:00 2026-05-26T05:42:14+00:00

Have made backup script that does well: makes backup zip-file and then uploads it

  • 0

Have made backup script that does well: makes backup zip-file and then uploads it via ftp to another server. It’s located here: /home/www/web5/backup/backup

Then I decided to put this script into crontab to be done automatically.
I’m doing (as root)

crontab -e

On the blank row I put:

*/1 * * * * /home/www/web5/backup/backup

Escape key, :wq!, Enter

I set it to be done each minute to test it.
Then went to the FTP folder, where script uploads the files. I’m waiting, but nothing happens: catalog is empty after each refresh in my Total Commander.

But when I execute /home/www/web5/backup/backup manually (as root as well), it works just fine and I see the new file at FTP.

What’s wrong? This server is kind of heritage, so I might know not everything about it. Where to check first? OS is

Linux s090 2.6.18.8-0.13-default

(kind of very old CentOS).
Thanks for any help!

UPD: /home/www/web5/backup/backup has chmod 777
UPD2: /var/log/cron doesn’t exist. But /var/log/ directory exists and contains logs of apache, mail, etc.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T05:42:15+00:00Added an answer on May 26, 2026 at 5:42 am

    */1 may be the problem. Just use *.

    * * * * * /home/www/web5/backup/backup
    

    Also, make sure /home/www/web5/backup/backup is executable with chmod 775 /home/www/web5/backup/backup

    Check /var/log/cron as well. That may show errors leading to a fix.


    From Crontab – Quick Reference

    • Crontab Environment

    cron invokes the command from the user’s HOME
    directory with the shell, (/usr/bin/sh). cron supplies a default
    environment for every shell, defining:

    HOME=user’s-home-directory
    LOGNAME=user’s-login-id
    PATH=/usr/bin:/usr/sbin:.
    SHELL=/usr/bin/sh
    

    Users who desire to have their .profile executed must explicitly do so
    in the crontab entry or in a script called by the entry.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need a script that automatically makes a backup of a MySql Database. I
I have a SQL 2008 job that does database backups using a Powershell script.
I have made a simple batch file for backing up my repository changes and
I have a PostgreSQL backup made with PHPPgadmin using Export > Copy (instead Copy
I have made the remote database backup (MSSQL Server 2005 Express) to the localhost,
I have several old 3.5in floppy disks that I would like to backup. My
I have a script that dumps the db and copies it to S3. This
I have a backup I made with iOS 5 beta2 (with iTunes 10.5 beta
I have a .bak file which contains backup sets of two different databases. It
I have a database backup which I imported into SQL Server and made few

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.