var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
How to create special backup
I have an big account which used for upload images
so I don't need cpanel to create daily backup for it
I remove it from list backup in WHM
But I need to do the folowing
every 10 Days
copy the folder from /home/user/public_html
only copy the folder
I did it but after 10 days I get an error that the folder exist in
so how I can give deferent name automatically every time for this backup folder ???
and after 10 days
without remove backup1
Thanks a lot
write a custom script for the task!
I know that I must write custom script
But How I can create automaticaly new name for this backup file
to prevent create new file over old files ???
Write a shell script that will "tar -czf filename /home/user/public_html" where you've set a filename string and include the current date in the filename string - easiest way probably.
Yes I do that
But `date` parameter have a space in it like
Sun Jun 5 15:07:50 AST 2005
How I can let this appear as
without space ??
or like give me only
without the others words or spaces
Can you help
Use date formatting options. For dd:mm:yyyy use:
Thanks a lot it is help
so How I can put out month as June not 6
like to be 05June2005 rather than 05062005
and Thanks a lot
"man date" has all the options.
Thanks for all
But How I can create a folder with date
what I must put
mkdir now date ???
I try mkdir 'date +"%d%b%Y"'
But it is not working
can anyone help me please ??
you shouldn't use a single quote --> '
but the following --> `
mkdir `date +"%d%b%Y"`