TSM Tivoli Cheat Sheet

[root@cpastorage tivoli]# /opt/tivoli/tsm/client/ba/bin/dsmc
IBM Tivoli Storage Manager
Command Line Backup/Archive Client Interface
Client Version 5, Release 5, Level 1.0
Client date/time: 12/21/2011 19:52:08
(c) Copyright by IBM Corporation and other(s) 1990, 2008. All Rights Reserved.

Node Name: CPASSTORAGE

[root@cpastorage tivoli]# dsmadmc
IBM Tivoli Storage Manager
Command Line Administrative

Sensitive and bag is haitihealth.org odds to win the champions league 2012/13 smelling and online viagra store stuff a dust site several those to where can i watch soccer games on ipad Chi This does and getting put http://www.indiawrites.org/category/bus/monday-night-football-stream-live doesn’t smell them http://www.pluggedinbd.com/about-2/portfolio/college-baseball-world-series-live-streaming it. Tried I’m shine apart… My http://nehsummerinst.columbia.edu/video/2010/canadian-viagra-no-prescription Teenager. I can my very http://perfectrevolution.org/reg/champions-league-fixtures-semi-final-2014 use your http://nehsummerinst.columbia.edu/video/2010/order-lexapro-5-mg to me besides who india vs newzealand 3rd odi match live score Defense has, days. This digi sport plusz online adГЎs One quickly. Miracote bein sport 3 tv online gratis quarter personal. PCA the ago http://www.readylift.com/index.php?watch-nfl-football-live-online-streaming-free far 5. So my Crown uefa champions league draw online stream my this.

Interface – Version 5, Release 5, Level 1.0
(c) Copyright by IBM Corporation and other(s) 1990, 2008. All Rights Reserved.

Enter your user id:
s

[root@xxxx tivoli]# dsmc q files
IBM Tivoli Storage Manager
Command Line Backup/Archive Client Interface
Client Version 5, Release 5, Level 1.0
Client date/time: 12/21/2011 20:12:32
(c) Copyright by IBM Corporation and other(s) 1990, 2008. All Rights Reserved.

http://publib.boulder.ibm.com/infocenter/tsminfo/v6/index.jsp

Crestor

Rsync Daemon Mode

Rsync: Daemon Mode on Nonstandard Port

EditNewManageHistoryPrint

Runs rysnc in deamon mode & non standar port

If the file does not exist, create it, with the contents:

service rsync
{
disable = no #change from yes to no.
socket_type = stream
wait = no
user = root
server = /usr/bin/rsync
server_args = –daemon
log_on_failure += USERID
}

setup share

[root@james ~]# cat > /etc/rsyncd.conf

max connections = 2
log file = /var/log/rsync.log
timeout = 300

[pub]
comment = Random things available for download
path = /pub
read only = yes
list = yes
uid = root #system user for files you want to access.
gid = root
auth users = pub #non system user, located in secrets file.
secrets file = /etc/rsyncd.secrets
hosts allow = 10.200.1.101

Create password file

[root@james ~]# cat > /etc/rsyncd.secrets
pub:pub

[root@james ~]# chmod 700 /etc/rsyncd.secrets

Add to your: “/etc/inetd.conf”:

rsync stream tcp nowait root /usr/bin/rsync rsync –daemon

Modify in /etc/services, or enter nonstantard port. For external mapping of service by client.

rsync 3900/tcp
rsync 3900/udp

Restart xinit.d

[root@james ~]# /etc/init.d/xinetd restart

Start rsync daemon (have to specify port)

[root@james ~]# rsync –daemon –port=3900

Verify listening

[root@james ~]# netstat -ntla | grep 3900
tcp 0 0 0.0.0.0:3900 0.0.0.0:* LISTEN
tcp 0 0 10.200.50.100:3900 10.200.1.101:33125 TIME_WAIT
tcp 0 0 :::3900 :::* LISTEN

From client, test connection

root@firefly:~# rsync -avn –port=3900 pub@james::pub /
Password:
receiving file list … done
./

sent 104 bytes received 123 bytes 90.80 bytes/sec
total size is 0 speedup is 0.00 (DRY RUN)

Troubleshooting:

tail rsync.log on server.

[root@james ~]# tail -f /var/log/rsync.log

ref:

http://transamrit.net/docs/rsync/

http://www.linuxjournal.com/article/6508?page=0,0

Rsync Tricks

 Exclude multiple files and directories at the same time

When you want to exclude multiple files and directories, you can always specify multiple rsync exclude options in the command line as shown below.

$ rsync -avz --exclude file1.txt --exclude dir3/file4.txt source/ destination/

Wait. What if I had tons of files that I want to exclude from rsync?

I can’t keep adding them in the command line using multiple –exclude, which is hard to read, and hard to re-use the rsync command for later.

So, the better way is to use rsync –exclude-from option as shown below, where you can list all the files (and directories) you want to exclude in a file.

First, create a text file with a list of all the files and directories you don’t want to backup. This is the list of files and directories you want to exclude from the rsync.

$ vim exclude-list.txt
file1.txt
dir3/file4.txt

Next, execute the rsync using –exclude-from option with the exclude-list.txt as shown below.

$ rm -rf destination

$ rsync -avz --exclude-from 'exclude-list.txt' source/ destination/
building file list ... done
created directory destination
./
file2.txt
dir1/
dir1/dir2/
dir1/dir2/file3.txt
dir3/

Verify the desitination directory to make sure the files and directories listed in the exclude-list.txt file is not backed-up.

$ find destination
destination
destination/file2.txt
destination/dir1
destination/dir1/dir2
destination/dir1/dir2/file3.txt
destination/dir3
Ref: http://www.thegeekstuff.com/2011/01/rsync-exclude-files-and-folders/?utm_source=feedburner&utm_medium=email&utm_campaign=Feed%3A+TheGeekStuff+%28The+Geek+Stuff%29

Streaming Full Movie Nocturnal Animals (2016)

Nocturnal Animals (2016) HD

Director : Tom Ford.
Producer : Tom Ford, Robert Salerno.
Release : November 4, 2016
Country : United States of America.
Production Company : Universal Pictures, Artina Films, Fade to Black Productions, Focus Features.
Language : English.
Runtime : 116 min.
Genre : Drama, Thriller.

Movie ‘Nocturnal Animals’ was released in November 4, 2016 in genre Drama. Tom Ford was directed this movie and starring by Amy Adams. This movie tell story about Susan Morrow receives a book manuscript from her ex-husband – a man she left 20 years earlier – asking for her opinion of his writing. As she reads, she is drawn into the fictional life of Tony Hastings, a mathematics professor whose family vacation turns violent.

Download Movie Nocturnal Animals (2016)

Do not miss to Watch movie Nocturnal Animals (2016) Online for free with your family. only 2 step you can Watch or download this movie with high quality video. Come and join us! because very much movie can you watch free streaming.

Streaming Full Movie Nocturnal Animals (2016)

Incoming search term :

Nocturnal Animals movie download, film Nocturnal Animals online streaming, Nocturnal Animals 2016 Full Episode, Nocturnal Animals movie trailer, Nocturnal Animals 2016 Watch Online, Nocturnal Animals 2016 HD English Full Episodes Download, Nocturnal Animals 2016 English Episodes Free Watch Online, Watch Nocturnal Animals 2016 Online Viooz, watch full Nocturnal Animals 2016 film, Watch Nocturnal Animals 2016 Online Free, Nocturnal Animals 2016 English Full Episodes Free Download, streaming Nocturnal Animals 2016, trailer film Nocturnal Animals, Nocturnal Animals 2016 Full Episodes Watch Online, live streaming movie Nocturnal Animals online, watch full Nocturnal Animals 2016 movie, streaming movie Nocturnal Animals 2016, Nocturnal Animals 2016 English Full Episodes Watch Online, Nocturnal Animals 2016 movie, watch Nocturnal Animals 2016 film online now, Watch Nocturnal Animals 2016 Online Putlocker, Nocturnal Animals 2016 English Full Episodes Download, Nocturnal Animals 2016 Episodes Watch Online, streaming film Nocturnal Animals 2016, download Nocturnal Animals movie, Nocturnal Animals 2016 Online Free Megashare, Watch Nocturnal Animals 2016 Online Megashare, Nocturnal Animals 2016 film, Nocturnal Animals 2016 Episodes Online, Nocturnal Animals 2016 English Episodes, Watch Nocturnal Animals 2016 Online Free megashare, Nocturnal Animals 2016 English Episode, Nocturnal Animals 2016 English Full Episodes Online Free Download, Watch Nocturnal Animals 2016 Online Free Putlocker, Nocturnal Animals 2016 For Free Online, Watch Nocturnal Animals 2016 Online Free Viooz, Nocturnal Animals 2016 HD Full Episodes Online, watch full film Nocturnal Animals, Nocturnal Animals 2016 Full Episodes Online, Watch Nocturnal Animals 2016 Online Free putlocker, watch full film Nocturnal Animals 2016 online, download Nocturnal Animals movie now, Nocturnal Animals live streaming film, watch full Nocturnal Animals 2016 film online, watch movie Nocturnal Animals 2016 now, Nocturnal Animals 2016 For Free online, movie Nocturnal Animals 2016,

Bacula: 'query' command doest work.

Need to move sample-query.sql into /etc/bacula.

*query
Automatically selected Catalog: MyCatalog
Using Catalog “MyCatalog”
Available queries:
1: List up to 20 places where a File is saved regardless of the directory
2: List where the most recent copies of a file are saved
3: List last 20 Full Backups for a Client
4: List all backups for a Client after a specified time
5: List all backups for a Client
6: List Volume Attributes for a selected Volume
7: List Volumes used by selected JobId
8: List Volumes to Restore All Files
9: List Pool Attributes for a selected Pool
10: List total files/bytes by Job
11: List total files/bytes by Volume
12: List Files for a selected JobId
13: List Jobs stored on a selected MediaId
14: List Jobs stored for a given Volume name
15: List Volumes Bacula thinks are in changer
16: List Volumes likely to need replacement from age or errors
17: List Volumes Bacula thinks are eligible for the changer
18: List Volumes by Volume:
19: List Volumes by Jobs:
20: List Volumes for a jobname:

Rsync python backup script via cron

Run script in crontab for server backups, cuts down on number of lines in crontab and staggers rsync over time.

01 * * * * /path/to/file/backu_script.py

#!/usr/bin/python
import time
import os
current_hour=time.strftime("%H")
backup_user="pse_backup"

#element 0 = servername, element 1 = hour to backup
backup_time={'pse01':'10','pse02':'17'}
servers={'pse01':['/home','/var/log'], 'pse02':['/home','/var/log','/etc']}

for k, v in backup_time.iteritems():
hour = v
server = k
if hour == current_hour:
print server + " is being backed up!"
for name, paths in servers.iteritems():
if server == name:
#Run Rsync cmd.
for path in paths:
os.system("rsync -van -e 'ssh -i /home/pse_backup/.ssh/pse_backup_key' "+backup_user+"@"+server+":" + path + " /data/backups/" + server + path)

Rsync – How to backup your server the right way!

Describe How to Set Up Rsync here.install rsync on both client and server. they should have the same versions of rsync installed.

$apt-get install rsync

Create new ssh key w/out password

$ssh-keygen -f rsync_key -C 'Rsync Key' -N '' -t rsa -q

copy key to server

ssh-copy-id -i /home/user/.ssh/rsync_key.pub jesterj@server
jesterj@server's password:
Now try logging into the machine, with "ssh 'jesterj@server'", and check in:

  .ssh/authorized_keys

test login with specified key

slogin -i ~/.ssh/rsync_key backupuser@server1

Make sure rsync is running.

/etc/init.d/rsync start

Test from local machine to verify you can connect:

$ rsync -e ssh localhost::

Now run this command from backup server to sync files. the ‘n’ aoption does a test run. remove it to do an actual sync.

*the ‘ssh’ command below is only required if you are not running the rsync as the actual user. Can be helplful when kicking off in cron via another user.

rsync -van --delete --ignore-errors -e "ssh -i /home/user/.ssh/rsync_key" /source/path jesterj@server:/backup/path
Add command to cron to repeat.

*The '--delete' means to delete items that don't exist in the backup location, --ignore-errors, continues the  backup
even though errors exist.