Hi
Does anyone know how to make a backup of csp
Want to keep a copy handy incase of emergency
Thanks
There are 9 replies in this Thread which was already clicked 963 times. The last Post () by tomthebomb1968.
Hi
Does anyone know how to make a backup of csp
Want to keep a copy handy incase of emergency
Thanks
Post a list of the directories you want to backup..
Not sure what you mean
I thought you should back up the whole CSP so if the server PC crashed you could reinstall it ?
What is the normal way to do this or what files do you suggest we back up
I was thinking the users and the configs ?
If you gave me your local csp folder(s) paths, I was gona mod a script for you...
the default is"/usr/local/csp"
Is that the only folder you want backed up??
Sorry
I was asking the question for a friend
I'll go and ask him as I'm not sure what he is asking to do
It would be great if we could get a script
Thanks
Assuming that the csp folder is "/usr/local/csp"
create a folder for the backups!
Create a file called csp-backup.sh in /var/script and copy paste this script into it!
#!/bin/sh
####################################
#
# Backup CSP script.
# thatfellow - linuxsat-support
#
####################################
# What to backup.
backup_files="/usr/local/csp"
# Where to backup to.
dest="/var/csp-backup"
# Create archive filename.
datetime=$(date +"%Y-%m-%d-%H.%M.%S")
hostname=$(hostname -s)
archive_file="$datetime-csp_backup-$hostname.tgz"
# Print start status message.
echo "Backing up $backup_files to $dest/$archive_file"
date
echo
# Backup the files using tar.
tar czf $dest/$archive_file $backup_files
# Print end status message.
echo
echo "Backup finished"
date
# Long listing of files in $dest to check file sizes.
ls -lh $dest
Display More
chmod the script!
Run the script every night @ midnight!
add this line to your crontab file @ /etc/crontab
Thanks for that
One question is it possible to allow this script to backup off site
The CSP ia on a VPS and if this goes down he wants to be able to run locally also ?
Another quick question you might know
I have been testing this for him also
He has oscam going to CSP
on csp on some channels every now and then I get a 6 second freeze when I look at CSP I can see in the events lost service
When I connect to OSCAM direct I do not see this problem
Is there a way to fix this in CSP
Sorry for adding this to my thread but you seem to know what your talking about.
Thanks
QuoteThanks for that
One question is it possible to allow this script to backup off site
The CSP ia on a VPS and if this goes down he wants to be able to run locally also ?
This works perfect for me, I log in 2 or 3 times a week and copy over the backups to local PC for safe storage..
Yes, you can mail the backup to local address, I cant remember how exactly, long time since I used it..
QuoteAnother quick question you might know
I have been testing this for him also
He has oscam going to CSP
on csp on some channels every now and then I get a 6 second freeze when I look at CSP I can see in the events lost service
When I connect to OSCAM direct I do not see this problem
Is there a way to fix this in CSP
Sory m8, dont use csp..
Thanks
Will give it a try
I use winscp . Just log into your server with it then drag and drop tthe whole csp folder to your local pc.
Thanks to thatfellow for the autobackup script :78:
Don’t have an account yet? Register yourself now and be a part of our community!