LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 12-10-2012, 04:56 AM   #1
tsitras
Member
 
Registered: Mar 2003
Distribution: Debian Squeeze
Posts: 182

Rep: Reputation: 30
backup script


hi. i am running asterisk in my box and i would like to have all the recordings saved. the default recording is in .wav format. so in first place i need to change it to .mp3. Then i need to compress the whole folder and then move it to a different path (NAS). this script will take place every month on the 28th at 23:00.
some hints please?
 
Old 12-10-2012, 11:25 AM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 15,102

Rep: Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719
Quote:
Originally Posted by tsitras View Post
hi. i am running asterisk in my box and i would like to have all the recordings saved. the default recording is in .wav format. so in first place i need to change it to .mp3. Then i need to compress the whole folder and then move it to a different path (NAS). this script will take place every month on the 28th at 23:00.
some hints please?
Hints? Sure...ffmpeg can convert one format to another (read the man page, but "ffmpeg -i <input file name> <output file name>.mp3" will probably do it. Then read the man page on the tar command, which can archive/compress a whole tree into one file for you. Put those commands in a script, and put it in cron to run whenever you'd like.

If you post what you've written so far and where you're stuck, we can help. Since you've been registered here since 2003 (nine years), you should already know basics of scripting and how to use cron...and that we typically don't write scripts for people, but will be happy to help when someone is stuck.

Last edited by TB0ne; 12-10-2012 at 11:27 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What happens with backup-manager.org (very useful backup script)? Murz Linux - Software 3 07-27-2010 07:46 AM
Backup Script lamez Linux - Software 6 06-18-2010 09:47 AM
Newbie trying to write a simple backup script to backup a single folder Nd for school stryker759a Linux - Newbie 2 09-16-2009 09:52 AM
Need help with script to organise files into folders as part of DVD backup script jasybee2000 Linux - Newbie 5 06-15-2009 08:29 PM
how to create backup MYSQL Script to backup my database for every 1hour RMLinux Linux - Newbie 3 11-20-2008 11:13 AM


All times are GMT -5. The time now is 05:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration