Welcome,
Guest.
Please
Login
or
Register
.
News:
$495 prize for new 110mb.com homepage design.
More info...
| Admin & User Box17 IP's
will be changed to renew it's global ISPs whitelist status. | Box18 coming by end of Dec 09 | Box16 Sendmail fixed.
Home
Help
Calendar
Register
Login
110mb.com Forum
»
General Discussions & Events
»
General Chat
»
Timestamp in cronjob backup?
Pages: [
1
]
Go Down
« previous
next »
Send this topic
|
Print
Author
Topic: Timestamp in cronjob backup? (Read 571 times)
meep-online
Authority Member
Online
Posts: 917
Timestamp in cronjob backup?
«
on:
July 27, 2008, 10:57:16 PM »
Hello,
If you are running a cronjob in cpanel to backup your site, like so:
Code:
zip -r backup public_html
then how would you get it to back it up to like backup-(timestamp).zip, where (timestamp) is the current timestamp?
I'm no good with unix commands
Cameron
Logged
Diemux
Underground3k.com!
Administrator
Official 110mb Guru
Offline
Posts: 12079
Use search before asking...
Re: Timestamp in cronjob backup?
«
Reply #1 on:
July 27, 2008, 11:08:41 PM »
This is not for a 110MB website right?
Logged
Problems with your 110MB account of website: Visit the support database:
http://help.110mb.com
!
NOW available
:
PHPfusion-mods.net!
Underground3k
meep-online
Authority Member
Online
Posts: 917
Re: Timestamp in cronjob backup?
«
Reply #2 on:
July 27, 2008, 11:14:03 PM »
No, its for a mates website
Logged
inp o҉rtb
The Gangsta
Global Moderator
Official 110mb Guru
Online
Posts: 15377
experimental theologian
Re: Timestamp in cronjob backup?
«
Reply #3 on:
July 28, 2008, 05:05:05 AM »
Quote from: meep-online on July 27, 2008, 10:57:16 PM
Hello,
If you are running a cronjob in cpanel to backup your site, like so:
Code:
zip -r backup public_html
then how would you get it to back it up to like backup-(timestamp).zip, where (timestamp) is the current timestamp?
I'm no good with unix commands
If your shell is POSIX-compliant (like Bash), try:
zip -r backup-`date +%s`.zip public_html
Logged
Hi! I’m a signature virus! Add me to your signature to help me spread.
spam me:
ispamspot@gmail.com
blog
|
my work @ deviantART
|
Imagine-ng image editor
meep-online
Authority Member
Online
Posts: 917
Re: Timestamp in cronjob backup?
«
Reply #4 on:
July 28, 2008, 08:01:47 AM »
Ok thanks. I'll try that and see if it works
Logged
meep-online
Authority Member
Online
Posts: 917
Re: Timestamp in cronjob backup?
«
Reply #5 on:
July 29, 2008, 06:47:41 AM »
Hey I have tried doing
Code:
zip -r backups/backup`date +%y%m%d%H%M%S`.zip public_html
and it doesn't work. It gives the error:
Code:
/bin/sh: -c: line 0: unexpected EOF while looking for matching ``'
/bin/sh: -c: line 1: syntax error: unexpected end of file
Logged
inp o҉rtb
The Gangsta
Global Moderator
Official 110mb Guru
Online
Posts: 15377
experimental theologian
Re: Timestamp in cronjob backup?
«
Reply #6 on:
July 29, 2008, 07:01:22 AM »
I guess not, then. What about writing a PHP job to rename the backup file?
Logged
Hi! I’m a signature virus! Add me to your signature to help me spread.
spam me:
ispamspot@gmail.com
blog
|
my work @ deviantART
|
Imagine-ng image editor
Pages: [
1
]
Go Up
Send this topic
|
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
110MB Support & How To's
-----------------------------
=> Technical Questions & Website Design
=> Website Promotion, SEO & Making Money
=> How To Tutorials On Various Script Installations/Tips & Tricks
=> Features You Want Added To 110MB
===> Newest Features Added To 110MB
=> Language Specific Support & Chat
===> العربية (Arabic)
===> Русский (Russian)
===> Español (Spanish)
===> Việt (Vietnamese)
===> Français (French)
===> Italiano (Italian)
-----------------------------
General Discussions & Events
-----------------------------
=> Let Us See Your Website
=> General Chat
=> Link Heaven
===> Video Heaven
-----------------------------
Services For Everyone
-----------------------------
=> Marketplace
=> Have Someone Install/Fix It For You
=> Image/Video Design Requests
Loading...