Sometimes you just need to make your life easier and let’s face it, EditShare do not do that unless you pay them large chunks of cash. You hand over teh cash, they give you EditShare Ark which sucks balls for the most part as it’s based on Bacula and not Amanda (They won’t tell you this!).
One of the little jobs we need to do is backup the users project files nightly really quickly and painlessly. We only keep hold of three days worth but you may require X days, you can adjust the below to suit your needs. Save this out as backupprojfiles in to /usr/local/bin:
#!/bin/bash
mountpoint="/mnt/backupnas"
getdate=$(date +%F)
logfile=/tmp/AvidProjectBackup_$getdate.txt
echo Hello. Here we go... > $logfile
# First we mount the backup NAS
mount $mountpoint >> $logfile
# check if mounted
if mount | grep backupnas > /dev/null; then
echo "Mounted like a cowboy, yeehaw..." >> $logfile
else
echo "Not mounted, bailing out!" >> $logfile
/usr/local/bin/sendEmail -f backup@es-master -t
exit 1
fi
# We need to handle some filenames with spaces in a find search
OIFS="$IFS"
IFS=$'\n'
# find those files and folders to rsync to backup one raid at a time
echo Hunting for Avid Project files to backup
echo Hunting for Avid Project files to backup >> $logfile
find /RAIDS/RAID_1/AvidStyle -iname "Avid Projects" -print > /tmp/raid1.txt
find /RAIDS/RAID_2/AvidStyle -iname "Avid Projects" -print > /tmp/raid2.txt
find /RAIDS/RAID_3/AvidStyle -iname "Avid Projects" -print > /tmp/raid3.txt
find /RAIDS/RAID_4/AvidStyle -iname "Avid Projects" -print > /tmp/raid4.txt
# Create dated folder on mount to put these backups in to
if [ ! -d $mountpoint/$getdate ];
then
mkdir $mountpoint/$getdate
fi
# Dump data
for i in `cat /tmp/raid1.txt`; do
echo $i
rsync -vr --size-only -R "$i" "$mountpoint/$getdate/" >> $logfile
done
for i in `cat /tmp/raid2.txt`; do
echo $i
rsync -vr --size-only -R "$i" "$mountpoint/$getdate/" >> $logfile
done
for i in `cat /tmp/raid3.txt`; do
echo $i
rsync -vr --size-only -R "$i" "$mountpoint/$getdate/" >> $logfile
done
for i in `cat /tmp/raid4.txt`; do
echo $i
rsync -vr --size-only -R "$i" "$mountpoint/$getdate/" >> $logfile
done
# Cleaning old data
echo Files deleted >> $logfile
find $mountpoint -mtime +3 -delete -print >> $logfile
# Let's put the log file in to the backup directory for ease as these can be too big to email:
gzip $logfile >> $logfile
cp $logfile.gz $mountpoint/$getdate/ >> $logfile
# Let's mail dem logs
/usr/local/bin/sendEmail -f backup@es-master -t
# End bits
IFS="$OIFS"
umount $mountpoint
Don’t forget to create the mount point in /etc/fstab and then add this script to crontab to run at 11:59pm else you’ll get today’s date on yesterday’s file backup. Ah yeah, I forgot, you’ll need the ES root password. See your favourite ES support guys for this and see if they’ll let you in.
Hi,
nice to see, someone share some practice wit Editshare !
So, how can you get the root pwd? im really need, beacuse of attchin some extra storage under mediaspaces π
Have you managed to get the password yet? I have it if you want it emailed privately π
hoho, i want it: janos_at_maczko.eu – thanks its is the time when very needed π
I’m and Editshare owner (and also Ark unfortunately) and would love to get the root pass. Could you please email privately? I have an old server I’d like to repurpose and support won’t share the pass.
Thanks!
I have an old EditShare system. It’s telling me “The EditShare Service is not running” when I try to Login. I really could use the root password to try re-installing the last update I have.
It’s kind of an emergency.
Can you please e-mail me privately?
Done.
Hey!
This is nice work. Any chance you could send me the root pw privately? Canβt get hold of editshare and am having a bit of an emergency booting one up!
nick_at_twodogs.tv
Many thanks!
Hi, I came across your great article. That saves my day!
I would be very grateful if you would also send me the root pw privately.
(marc.janson at gmx-topmail.de).
Thank you very much in advance!
Marc
I would love to get that root password by private E-mail as well, please, pretty please. We have an old beast that we need to change some parameters to, and we no longer have their maintenance either… Thanks.
You can write to me at soundpro69 AT the domain everyone uses. Namely gmail.com.
Danke
Hi Geekphreek,
We have an editshare at work. Have often minor and major problems with it and the support is often very uncommunicative π
I am working a lot with the api and flow automation and sometimes things would be easier with a root pw.
Do you mind to sent it to me too? This would be really helpful! email: c.lewinske at gmail.com
cheers
Hi, I have editshare in use and have a some issuses with rabbitmq message server, i need to change AMQP password for more system security, but it needs a root password, if you have this, can you send it to ilya@spartacus-mma.com. Thanks!
Really great to see more editshare stuff. wish they had a forum like avid where you can get more help and knowledge.
would love the pw too.